-
Notifications
You must be signed in to change notification settings - Fork 618
added test to verify that datetime and time can be used for TIME #2733
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
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
|
jdbc-v2/src/test/java/com/clickhouse/jdbc/JdbcDataTypeTests.java
Outdated
Show resolved
Hide resolved
jdbc-v2/src/test/java/com/clickhouse/jdbc/JdbcDataTypeTests.java
Outdated
Show resolved
Hide resolved
jdbc-v2/src/test/java/com/clickhouse/jdbc/JdbcDataTypeTests.java
Outdated
Show resolved
Hide resolved
… for consistent results
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.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
jdbc-v2/src/test/java/com/clickhouse/jdbc/JdbcDataTypeTests.java
Outdated
Show resolved
Hide resolved
kurnoolsaketh
left a comment
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.
please add 'UTC' to DateTime, then this is good to merge
jdbc-v2/src/test/java/com/clickhouse/jdbc/JdbcDataTypeTests.java
Outdated
Show resolved
Hide resolved
|



Summary
Checklist
Delete items not relevant to your PR:
Note
Low Risk
Behavior change is limited to deterministic ordering in
getTypeInfo()plus additional integration coverage; no core query execution or data conversion logic is modified.Overview
Adds an integration test (
testTimeAndDateTimeCompatibleWithJDBCTime) that verifies both legacyDateTime-backed time values and native ClickHouseTime/Time64(25.6+, behindallow_experimental_time_time64_type) can be read viaResultSet#getTime(...)and that associated date/time components match expectations.Aligns
DatabaseMetaDataImpl#getTypeInfo()output with v1 behavior by adding anORDER BY nameto thesystem.data_type_familiesquery, making type metadata ordering deterministic.Written by Cursor Bugbot for commit 9853a0d. This will update automatically on new commits. Configure here.