tanishq-chugh commented on code in PR #6137:
URL: https://github.com/apache/hive/pull/6137#discussion_r2438626403


##########
jdbc/src/test/org/apache/hive/jdbc/TestHiveConnection.java:
##########
@@ -75,7 +75,7 @@ public void testHiveConnectionParameters() throws 
SQLException, ZooKeeperHiveCli
     Assert.assertEquals("true", 
params.getSessionVars().get(JdbcConnectionParams.JDBC_PARAM_REQUEST_TRACK));
 
     JdbcConnectionParams nonPortParams = 
Utils.parseURL("jdbc:hive2://hello.host/default");
-    Assert.assertEquals(Integer.parseInt(Utils.DEFAULT_PORT), 
nonPortParams.getPort());
+    Assert.assertEquals(Integer.parseInt(Utils.getDefaultPort(nonPortParams)), 
nonPortParams.getPort());

Review Comment:
   Yes, Thanks for catching this. 
   Have made this change & also added the new case in 
[c90904a](https://github.com/apache/hive/pull/6137/commits/c90904a77a40e0f5d5915feec550e4abc649fa60)



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