-
Notifications
You must be signed in to change notification settings - Fork 4.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
HIVE-26336: Add a connectTimeout parameter for JDBC #5683
base: master
Are you sure you want to change the base?
Conversation
Could someone kindly assist me in applying for the workflow approval? I am new to contributing to Hive and this is my first time submitting a PR. |
https://ci.hive.apache.org/blue/organizations/jenkins/hive-precommit/detail/PR-5683/1/pipeline
|
|
Thank you very much for your guidance. I have fixed the previous buid errors, and all the tests have been successfully run now. May I ask if it is possible to proceed with the merge? |
What changes were proposed in this pull request?
Add a connectTimeout parameter for JDBC
Why are the changes needed?
Currently, the Hive JDBC driver lacks a dedicated parameter to set the connectTimeout for connection establishment. The driver implicitly uses the socketTimeout value for both the connect phase and subsequent socket operations. This creates ambiguity and limits users' ability to handle connection establishment failures gracefully.
Does this PR introduce any user-facing change?
Yes. New JDBC parameter connectTimeout is introduced.
Is the change a dependency upgrade?
No
How was this patch tested?
This patch was tested by validate the parsing of JDBC connection parameters in org.apache.hive.jdbc.TestHiveConnection#testHiveConnectionParameters