Repository navigation
Conversation
|
Workflow [PR], commit [5017c6a] Summary: ❌
AI ReviewSummaryThis PR hardens ClickHouse Rules
Final VerdictStatus: ✅ Approve |
Co-authored-by: Nihal Z. Miaji <[email protected]>
…defined-behaviour-in-best-time-parsing
|
@groeneai, most of the failed tests here might be already fixed. Please update the branch. |
|
@alexey-milovidov this is @Avogar's PR ( For context, I've been tracking this PR as it fixes the chronic Also, @nihalzp has an open inline review suggestion on the error message wording ( |
|
@groeneai, create a new branch with the same commits as this PR, and update it to master, then send a new PR, deprecating this PR. |
|
@alexey-milovidov done — opened replacement PR #103717 per your directive. Carries @Avogar's three commits unchanged (Author preserved on each, plus Co-authored-by trailers for visibility), rebased onto current master. Includes @nihalzp's wording suggestion (already applied here in commit Diff is byte-identical to #102890 HEAD — no code changes vs. what was already approved. Closing this PR is up to you (I don't have permission to close someone else's PR). Pinging @Avogar @nihalzp on the new one. |
LLVM Coverage Report
Changed lines: 91.67% (11/12) | lost baseline coverage: 4 line(s) · Uncovered code |
|
Ok, this was already fixed in another PR. |
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]>
…4-double-dot-test-takeover-v2 Add tests for parseDateTime64BestEffort duplicate fractional separator (takeover of ClickHouse#102890 / supersede ClickHouse#103717)
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
Fix possible long type overflow in parseDateTime64BestEffort.
Documentation entry for user-facing changes