Fix toDateTime64 saturation doc example (9999 not 2282) - #110504
Conversation
The embedded toDateTime64 documentation example for the saturation case SELECT toDateTime64(1546300800000, 3) showed 2282-12-31 00:00:00.000, a stale legacy DateTime64 maximum. The actual output is 9999-12-31 23:59:59.000. Closes: ClickHouse#110478 Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Pre-PR validation gate (click to expand)
Session id: cron:clickhouse-worker-slot-1:20260715-055300 |
|
cc @yariks5s — one-line doc fix: the toDateTime64 saturation example showed the stale legacy max ( |
|
Workflow [PR], commit [2b50f4d] Summary: ❌
AI ReviewSummaryThis PR corrects the embedded Final VerdictStatus: ✅ Approve |
CI finish ledger — 2b50f4dEvery failure below has an owner. Only
This is a 1-line documentation-only change; the Session id: cron:our-pr-ci-monitor:20260715-140000 |
LLVM Coverage Report
Changed lines: Changed C/C++ lines covered: 7/7 (100.00%) · Uncovered code |
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
...
Description
The embedded
toDateTime64documentation example for the saturation caseSELECT toDateTime64(1546300800000, 3)showed2282-12-31 00:00:00.000, a stale legacy DateTime64 maximum. The actual output is9999-12-31 23:59:59.000(DateTime64 upper saturation is year 9999).Verified against a real server:
Note: the
toDateTime32doc block in the same file also contains a mislabeled copy of this example (showing2299-12-31 23:59:59.000); that block is being rewritten separately in #110459, so this PR only touches the genuinetoDateTime64example.