Repository navigation
Fix ORC TIMESTAMP values before the first time zone transition - #130354
Conversation
The native ORC reader converted between the writer and reader time zones with `DateLUTImpl::timezoneOffset`, which returns the local mean time before the first transition of a zone (Asia/Shanghai +08:05:43 before 1901). `liborc` uses the oldest standard time there (+08:00), so the new reader shifted such values by the difference. Use the oldest standard offset before the first transition, as the reference implementation does. Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
Workflow [PR], commit [06f4f08] Summary: ✅
AI ReviewSummaryThe PR makes ancient Missing context / blind spots
Final VerdictStatus: ✅ Approve. No code changes requested; normal CI validation remains necessary. |
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Build profile diff (arm_release)Comparing ✅ No significant changes. Binary sizes
The official master build is compiled with Object file sizes4 object files changed (+34.27 KiB total), 1 added.
719 more object files are built by the master warmup baseline only (it builds every object-file target, a pull request build only Slowest function optimization changes (ThinLTO)Median per-function time ratio to the master baseline:
Compile time of recompiled translation units9 translation units recompiled, 13 s compile time in total, 8 of them have a recent master baseline. |
… writer `cctz::time_zone::next_transition` skips no-op records, so `Europe/Lisbon` got the wrong offset before 1912. Read the embedded tzdata like `liborc`, and use the same offsets for the writer's timestamp statistics so filter pushdown does not drop rows. This also removes the `cctz` include that broke the FreeBSD build. Co-Authored-By: Claude Opus 5.5 <[email protected]>
1847ab8
Backport #130354 to 26.10: Fix ORC `TIMESTAMP` values before the first time zone transition
Backport #130354 to 26.8: Fix ORC `TIMESTAMP` values before the first time zone transition
Backport #130354 to 26.9: Fix ORC `TIMESTAMP` values before the first time zone transition
Backport #130354 to 26.3: Fix ORC `TIMESTAMP` values before the first time zone transition
The native ORC reader converted between the writer and reader time zones with
DateLUTImpl::timezoneOffset, which returns the local mean time before the first transition of a zone (Asia/Shanghai +08:05:43 before 1901).liborcuses the oldest standard time there (+08:00), so values before the first transition were shifted by the difference, e.g.1850-01-01 00:00:00UTC read withinput_format_orc_reader_time_zone_name = 'Asia/Shanghai'gave1849-12-31 15:54:17instead of16:00:00. Now the reader uses the oldest standard offset before the first transition, as the reference implementation does.Related: #127690
Changelog category (leave one):
Workflow [PR]
Sync PR [sync-upstream/pr/130354]
Version info
26.11.1.1877-master(included in26.11and later)