[client-v2,jdbc-v2] Fix reading Date/Time values #2727
Merged
Conversation
…be stored as Integer
…is reduces number of conversions and makes logic simple
… dates are used for simpler reference
Client V2 CoverageCoverage Report
Class Coverage
|
JDBC V2 CoverageCoverage Report
Class Coverage
|
JDBC V1 CoverageCoverage Report
Class Coverage
|
Client V1 CoverageCoverage Report
Class Coverage
|
…ime value and actual time from it
chernser
commented
Feb 1, 2026
chernser
commented
Feb 1, 2026
chernser
commented
Feb 1, 2026
chernser
commented
Feb 1, 2026
mzitnik
reviewed
Feb 3, 2026
mzitnik
approved these changes
Feb 3, 2026
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.




Summary
Closes
Checklist
Delete items not relevant to your PR:
Note
Medium Risk
Changes core date/time decoding and conversion paths (including JDBC
ResultSetbehavior) and introduces a breaking change whereDateis no longer exposed asZonedDateTime, so downstream callers may see type/format differences.Overview
Fixes client-side decoding/conversion for
Date/Timetypes (includingDynamic/Variant) and aligns JDBC getters accordingly.Date/Date32are now read asLocalDatewith no timezone adjustment, whileTime/Time64are read as UTC-basedLocalDateTime(and exposed via newgetLocalTime()APIs forLocalTimeaccess).Adds
ClickHouseColumn.getValueDataType()to represent the effective type forSimpleAggregateFunction, and updates binary readers/string conversion logic to branch on that effective type; also improves null-handling and conversion consistency for enums, geo, inet, and arrays/lists. Extensive new/updated integration tests cover time range/precision, timezone invariance for dates, andDynamic/Variantdate-time decoding, plus new JDBC-focused date/time tests (includingDurationmapping for time values).Written by Cursor Bugbot for commit 909bdf3. This will update automatically on new commits. Configure here.