dengzhhu653 commented on code in PR #5701:
URL: https://github.com/apache/hive/pull/5701#discussion_r2348100245


##########
beeline/src/java/org/apache/hive/beeline/BeeLine.java:
##########
@@ -900,6 +900,8 @@ private boolean connectUsingArgs(BeelineParser 
beelineParser, CommandLine cl) {
     getOpts().setScriptFile(cl.getOptionValue("f"));
 
     if (url != null) {
+      //remove white spaces in the URL in case there is any, like in 
"jdbc:oracle:thin:@(DESCRIPTION = (ADDRESS_LIST=..."
+      url = url.replaceAll("\\s+","");

Review Comment:
   Personally I would like not to make any change on the input url, that is, 
the beeline can accept the url whatever the user provides. If the beeline 
cannot parse the url correctly, then the user should make changes to fit into 
the Beeline, either replacing the namespace with %20 or removing the space from 
the jdo connection url.
   



-- 
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]

Reply via email to