turboFei commented on code in PR #7317:
URL: https://github.com/apache/kyuubi/pull/7317#discussion_r2742677763
##########
kyuubi-hive-jdbc/src/main/java/org/apache/kyuubi/jdbc/hive/Utils.java:
##########
@@ -568,7 +568,13 @@ public static String parsePropertyFromUrl(final String
url, final String key) {
String[] tokens = url.split(";");
for (String token : tokens) {
if (token.trim().startsWith(key.trim() + "=")) {
- return token.trim().substring((key.trim() + "=").length());
+ String value = token.trim().substring((key.trim() + "=").length());
+ // Remove query string part (anything after ?) to match
extractURLComponents behavior
+ int queryIndex = value.indexOf('?');
Review Comment:
https://github.com/apache/kyuubi/blob/dfd9b4935378c79d3c1f99e344273ff71e21765b/kyuubi-hive-jdbc/src/main/java/org/apache/kyuubi/jdbc/hive/Utils.java#L482-L514
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]