Repository navigation
Bump cctz from 2026c to 2026d - #121325
Conversation
Update the `cctz` submodule from `8e694da054a9` (fork head with tzdata 2026c) to `a1b98f7d40d7` (`ClickHouse/2026d`), which carries the upstream 2026d update plus the three ClickHouse patches rebased on top: - `Remove dependency on CoreFoundation library` - `Prevent arbitrary file open while loading timezone` - `Fix -Wchar-subscripts warning on illumos.` All three are still needed and are present at the new head: `time_zone_lookup.cc` still pulls in `CoreFoundation` on Apple, `CheckTimeZoneName` is still called from `time_zone_info.cc`, and the `-Wchar-subscripts` fix in `civil_time_detail.cc` is unchanged. Upstream additionally reworked `detail::join_seconds`/`split_seconds` in `include/cctz/time_zone.h` (SFINAE-constrained overloads, correct flooring for negative time points) and fixed extended-transition ordering, empty quoted abbreviations and `join_seconds` overflow/underflow. ClickHouse only uses `cctz::format`, `cctz::load_time_zone` and `time_zone::lookup`, so no source adaptation was required. The tzdata refresh 2026c -> 2026d changes the bytes of only 8 zone files (`America/Bogota`, `America/Inuvik`, `Asia/Tehran`, `CST6CDT`, `EST5EDT`, `Iran`, `MST7MDT`, `PST8PDT`); the shrink of the `*TZ` zones is a fat -> slim TZif conversion (POSIX rule instead of precomputed transitions) and is semantically neutral. Differential checks against a 2026c build over the full `DateLUT` range show byte-identical `formatDateTime` results and an identical `system.time_zones` list, so no `contrib/cctz-cmake/CMakeLists.txt` change is needed - the embedded tzdata list is regenerated at configure time.
|
Workflow [PR], commit [144de3a] Summary: ✅
AI ReviewSummaryThis PR bumps the PR Metadata💡 - Build/Testing/Packaging Improvementwith: - Bug FixThe current Final Verdict✅ No new code blockers. Adjust the LLVM Coverage ReportMeasured on commit 144de3a.
Changed lines: Uncovered code analysis did not run: No coverable C/C++ source files changed (contrib/ is excluded from coverage). Newly covered: +148 lines in 50 files (-115 lines lost coverage) · Details |
`CheckTimeZoneName` in the `cctz` fork ran on the raw name, but `FileZoneInfoSource::Open` strips the `file:` prefix before it builds the path, so `file:/abs/path` bypassed the leading `/` check and opened an arbitrary absolute path. The fork now rejects the prefix outright. Add a stateless test for the `file:` bypass and the other forbidden patterns across `toDateTime`, `toTimeZone`, the `DateTime` type parameter and `session_timezone`. Closes: ClickHouse#121367 ClickHouse/cctz#14 Co-Authored-By: Claude Fable 5.1 <[email protected]>
`clickhouse-client` applies `session_timezone` locally before sending the query, so the rejection surfaces as a client error rather than a server error, and the test harness reported "got no server error". ClickHouse#121325 Co-Authored-By: Claude Fable 5.1 <[email protected]>
Build profile diff (arm_release)Comparing ✅ No significant changes. Binary sizes
The official master build is compiled with Compile time of recompiled translation units9519 translation units recompiled, 10235 s compile time in total, 9097 of them have a recent master baseline. |
Backport #121325 to 26.9: Bump `cctz` from 2026c to 2026d
Backport #121325 to 26.3: Bump `cctz` from 2026c to 2026d
Backport #121325 to 26.7: Bump `cctz` from 2026c to 2026d
Backport #121325 to 26.8: Bump `cctz` from 2026c to 2026d
Two cases where a copied bullet was wrong, from the review of #134278: - A bullet merged from several entries was copied for any of its pull requests. The bullet of #121325 (`cctz` 2026d) and #124249 (2026e) would be copied for the backport of the former into `v26.9.3.38-stable` and announce the latter, which is not in that release. - A pull request with an entry in two releases got both of them: #124907 is under `Performance Improvement` in 26.11 and under `New Feature` in 26.10, with different wording. The bullets and the pull requests they attribute now make groups, connected by the attributions. The bullets of a group are copied only if they are all in one release and every pull request of the group is merged in the changelog interval; for a backport, the group has to be the original pull request alone. All other pull requests are requested from GitHub as before. On `v26.11.1.2942-stable` this leaves 1789 of the 5313 pull requests copied instead of 1796. Co-Authored-By: Claude Fable 5.2 <[email protected]>
Bumps
cctzto theClickHouse/2026dfork head, refreshing embedded tzdata from 2026c to 2026d while keeping the patch set on top of upstreamv2.3.Fork
-Wchar-subscriptsfix — rebased onto the upstream 2026d update.file:prefix in time zone names (2026d) cctz#14:CheckTimeZoneNamenow rejects thefile:prefix. Previouslyfile:/abs/pathbypassed the leading/check because the prefix is stripped byFileZoneInfoSource::Openafter the check ran. A stateless test coverstoDateTime,toTimeZone, theDateTimetype parameter andsession_timezone. This gap was pre-existing onmaster, not introduced by the 2026d update.Closes: #121367
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
Update
cctzto 2026d. Time zone names with thefile:prefix are now rejected.Workflow [PR]
Sync PR [sync-upstream/pr/121325]
Version info
26.10.1.515-master(included in26.10and later)26.9.2.23,26.8.11.26,26.7.14.25,26.3.33.134