InvisibleProgrammer commented on code in PR #6412:
URL: https://github.com/apache/hive/pull/6412#discussion_r3149969957


##########
jdbc/src/java/org/apache/hive/jdbc/HiveConnection.java:
##########
@@ -190,6 +208,49 @@ public class HiveConnection implements java.sql.Connection 
{
 
   public TCLIService.Iface getClient() { return client; }
 
+  /**
+   * Sets the effective {@code hive.query.timeout.seconds} (in seconds) after 
connect (URL) or a
+   * successful {@code SET hive.query.timeout.seconds=...}. Used for JDBC 
timeout messages (HIVE-28265).
+   */
+  void setSessionQueryTimeoutSeconds(long seconds) {
+    sessionQueryTimeoutSeconds.set(seconds);
+  }
+
+  /**
+   * If the JDBC URL supplied {@code hive.query.timeout.seconds} (query string 
/ {@code hiveconf:} map),

Review Comment:
   I would suggest to rethink this comment. I wonder how a person who didn't 
see the history of this PR would interpret this:
   "without regexparsing..."
   



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