Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@wangyum
Copy link
Member

@wangyum wangyum commented Jan 29, 2026

Why are the changes needed?

Fixed the parsePropertyFromUrl method in Utils.java to properly remove query string parts (everything after ?) from parsed JDBC URL property values, making it consistent with the extractURLComponents method.

When parsing JDBC URLs with query strings like: jdbc:hive2://host:10012/db;auth=JWT?kyuubi.session.cluster=clusterA.
The parsePropertyFromUrl method was incorrectly returning JWT?kyuubi.session.cluster=clusterA for the auth property, while extractURLComponents correctly returned only JWT. This inconsistency could cause authentication failures in JWT auth scenarios with additional query parameters.

How was this patch tested?

  1. URLs with query strings parse properties correctly without the query string
  2. URLs without query strings continue to work as expected
  3. Both parsing methods return consistent results

Was this patch authored or co-authored using generative AI tooling?

No.

@codecov-commenter
Copy link

codecov-commenter commented Jan 29, 2026

Codecov Report

❌ Patch coverage is 0% with 5 lines in your changes missing coverage. Please review.
✅ Project coverage is 0.00%. Comparing base (dfd9b49) to head (e89260c).

Files with missing lines Patch % Lines
...c/main/java/org/apache/kyuubi/jdbc/hive/Utils.java 0.00% 5 Missing ⚠️
Additional details and impacted files
@@          Coverage Diff           @@
##           master   #7317   +/-   ##
======================================
  Coverage    0.00%   0.00%           
======================================
  Files         698     698           
  Lines       43654   43658    +4     
  Branches     5896    5897    +1     
======================================
- Misses      43654   43658    +4     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants