Fix wrong date data type inference in case of overflow after timezone adjustment#102674
Fix wrong date data type inference in case of overflow after timezone adjustment#102674
Conversation
|
Workflow [PR], commit [ebe9141] Summary: ❌
AI ReviewSummaryThis PR fixes ClickHouse Rules
Final Verdict
|
LLVM Coverage Report
Changed lines: 100.00% (4/4) | lost baseline coverage: 5 line(s) · Uncovered code |
|
Hi — this PR may need backporting to Affected code: Why: The bug was introduced by commit 0bb076a ('Improve schema inference of date times', 2024-08-15), which added the strict parsing path with the pre-adjustment range check but no post-adjustment check. This commit was also backported to 24.8, so the bug predates all currently supported branches. The fix prevents wrong type inference (DateTime instead of DateTime64) and wrong values (wrap-around) for datetime strings near epoch boundaries with timezone offsets. If this should be backported, consider adding |
Cherry pick #102674 to 25.8: Fix wrong date data type inference in case of overflow after timezone adjustment
…of overflow after timezone adjustment
Cherry pick #102674 to 26.1: Fix wrong date data type inference in case of overflow after timezone adjustment
…of overflow after timezone adjustment
Cherry pick #102674 to 26.2: Fix wrong date data type inference in case of overflow after timezone adjustment
…of overflow after timezone adjustment
Cherry pick #102674 to 26.3: Fix wrong date data type inference in case of overflow after timezone adjustment
…of overflow after timezone adjustment
Backport #102674 to 26.1: Fix wrong date data type inference in case of overflow after timezone adjustment
Backport #102674 to 26.2: Fix wrong date data type inference in case of overflow after timezone adjustment
Backport #102674 to 26.3: Fix wrong date data type inference in case of overflow after timezone adjustment
Backport #102674 to 25.8: Fix wrong date data type inference in case of overflow after timezone adjustment
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
Fix wrong date data type inference in case of overflow after timezone adjustment. Closes #102601
Documentation entry for user-facing changes