-
Notifications
You must be signed in to change notification settings - Fork 594
[JDBC] ResultImpl fixed #2530
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
base: main
Are you sure you want to change the base?
[JDBC] ResultImpl fixed #2530
Conversation
…ed methods in result setimpl
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 enhances the JDBC ResultSet implementation by introducing a FeatureManager
to consistently handle unsupported operations and adds comprehensive test coverage. The changes improve the handling of JDBC operations that are not supported by ClickHouse while providing better control over whether exceptions are thrown.
- Introduces
FeatureManager
class to centralize handling of unsupported JDBC operations - Adds extensive test coverage for unsupported ResultSet methods and cursor positioning
- Implements proper fetch size handling and row position tracking in ResultSet
Reviewed Changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated 4 comments.
Show a summary per file
File | Description |
---|---|
StatementTest.java |
Updates test expectation for getFetchSize() to return the set value instead of 0 |
ResultSetImplTest.java |
Adds comprehensive tests for unsupported operations, cursor positioning, fetch operations, and metadata handling |
FeatureManager.java |
New utility class to centralize handling of unsupported JDBC features based on configuration |
StatementImpl.java |
Implements proper fetch size handling and fixes statement closure logic |
ResultSetImpl.java |
Refactors to use FeatureManager and implements row position tracking and fetch size management |
jdbc-v2/src/test/java/com/clickhouse/jdbc/ResultSetImplTest.java
Outdated
Show resolved
Hide resolved
|
Summary
Closes #2415
Checklist
Delete items not relevant to your PR: