-
Notifications
You must be signed in to change notification settings - Fork 614
[JDBC] Fixes #2592
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
[JDBC] Fixes #2592
Conversation
Client V2 CoverageCoverage Report
Class Coverage
|
JDBC V2 CoverageCoverage Report
Class Coverage
|
JDBC V1 CoverageCoverage Report
Class Coverage
|
Client V1 CoverageCoverage Report
Class Coverage
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR addresses several JDBC-related issues in the ClickHouse Java client, focusing on data type handling, boolean conversion, and user configuration persistence.
- Fixes boolean conversion logic to properly handle integer values (0/1) in addition to string values
- Resolves ClassCastException when retrieving network timeout default values by adding proper type casting
- Prevents user configuration from being overwritten when loading server information
Reviewed Changes
Copilot reviewed 7 out of 7 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| DatabaseMetaDataTest.java | Adds test coverage for nullable column metadata and nested type detection |
| DatabaseMetaDataImpl.java | Refactors type conversion logic and fixes variable naming in metadata operations |
| JdbcUtils.java | Updates boolean conversion to handle both string and numeric representations |
| SettingsTests.java | Adds validation tests for network timeout default values |
| ClientTests.java | Adds integration test for server settings functionality |
| CommonSettings.java | Fixes ClassCastException by properly casting network timeout to Long |
| Client.java | Preserves original user configuration when loading server info |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💡 To request another review, post a new comment with "/windsurf-review".
jdbc-v2/src/main/java/com/clickhouse/jdbc/metadata/DatabaseMetaDataImpl.java
Show resolved
Hide resolved
|


Summary
getObjectusedCloses #2586
Closes #2597
Closes #2247
Checklist
Delete items not relevant to your PR: