Repository navigation
Fix UB while parsing dateTime - #103773
Merged
Merged
Conversation
Contributor
|
Workflow [PR], commit [81447ec] Summary: ✅ AI ReviewSummaryThis PR fixes an undefined-behavior parsing path for ClickHouse Rules
Final Verdict
|
Contributor
LLVM Coverage Report
Changed lines: 100.00% (12/12) · Uncovered code |
alexey-milovidov
approved these changes
Apr 30, 2026
robot-ch-test-poll1
added a commit
that referenced
this pull request
Apr 30, 2026
Cherry pick #103773 to 25.8: Fix UB while parsing dateTime
robot-clickhouse
added a commit
that referenced
this pull request
Apr 30, 2026
This was referenced Apr 30, 2026
robot-ch-test-poll1
added a commit
that referenced
this pull request
Apr 30, 2026
Cherry pick #103773 to 26.1: Fix UB while parsing dateTime
robot-clickhouse
added a commit
that referenced
this pull request
Apr 30, 2026
This was referenced Apr 30, 2026
robot-ch-test-poll1
added a commit
that referenced
this pull request
Apr 30, 2026
Cherry pick #103773 to 26.2: Fix UB while parsing dateTime
robot-clickhouse
added a commit
that referenced
this pull request
Apr 30, 2026
robot-ch-test-poll1
added a commit
that referenced
this pull request
Apr 30, 2026
Cherry pick #103773 to 26.3: Fix UB while parsing dateTime
robot-clickhouse
added a commit
that referenced
this pull request
Apr 30, 2026
This was referenced Apr 30, 2026
robot-ch-test-poll1
added a commit
that referenced
this pull request
Apr 30, 2026
Cherry pick #103773 to 26.4: Fix UB while parsing dateTime
robot-clickhouse
added a commit
that referenced
this pull request
Apr 30, 2026
alexey-milovidov
added a commit
that referenced
this pull request
May 1, 2026
Backport #103773 to 26.4: Fix UB while parsing dateTime
alexey-milovidov
added a commit
that referenced
this pull request
May 1, 2026
Backport #103773 to 26.3: Fix UB while parsing dateTime
alexey-milovidov
added a commit
that referenced
this pull request
May 1, 2026
Backport #103773 to 26.2: Fix UB while parsing dateTime
This was referenced May 6, 2026
pull Bot
pushed a commit
to TCeason/ClickHouse
that referenced
this pull request
May 6, 2026
Adds expanded coverage (3 inputs * 3 OrNull/OrZero variants) for the duplicate fractional-separator case in parseDateTime64BestEffort. The underlying bug is already fixed on master by PR ClickHouse#103773 (yariks5s, "Fix UB while parsing dateTime", merged 2026-04-30). This test PR takes over @Avogar's stalled ClickHouse#102890 / closed ClickHouse#103717 by carrying forward only the additional test cases — the .cpp fix from ClickHouse#102890 is now redundant. Test cases: '12:34:56..123' (double dot directly) '12:34:56.123.456' (extra dot after fractional) '12:34:56.123456789012345678.987654321' (long fractional + dot) Each tested against parseDateTime64BestEffort (strict), parseDateTime64BestEffortOrNull, and parseDateTime64BestEffortOrZero. Co-authored-by: avogar <[email protected]> Co-authored-by: Pavel Kruglov <[email protected]> Co-authored-by: Nihal Z. Miaji <[email protected]>
fm4v
added a commit
that referenced
this pull request
May 12, 2026
Backport #103773 to 25.8: Fix UB while parsing dateTime
zeekay
pushed a commit
to hanzoai/datastore
that referenced
this pull request
Sep 11, 2026
zeekay
pushed a commit
to hanzoai/datastore
that referenced
this pull request
Sep 11, 2026
…3773 Backport ClickHouse#103773 to 26.4: Fix UB while parsing dateTime
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.
Trash in results after parsing: https://fiddle.clickhouse.com/5ab07786-bba6-4dce-96b4-5c884e2889ea
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
Fixes undefined behavior while parsing dateTime with a double fractional part.
Documentation entry for user-facing changes
Version info
26.5.1.19426.4.1.1127,26.3.10.47,26.2.17.28,25.8.24.8