Skip to content

Forbid libc: time zone names - #119634

Merged
alexey-milovidov merged 2 commits into
masterfrom
forbid-libc-time-zone-names
Sep 14, 2026
Merged

alexey-milovidov merged 2 commits into
masterfrom
forbid-libc-time-zone-names

Conversation

@alexey-milovidov

@alexey-milovidov alexey-milovidov commented Sep 12, 2026 •

Copy link
Copy Markdown
Member

Related: #118286

Fixes the data_type_deserialization_fuzzer out-of-memory in the nightly libFuzzer run at
https://s3.amazonaws.com/clickhouse-test-reports/praktika.html?REF=master&sha=30c98e714f85f24e60583935bbe38b5bbb65aa2d&name_0=NightlyFuzzers&name_1=libFuzzer%20tests&name_1=libFuzzer%20tests

out-of-memory (used: 8235Mb; limit: 8192Mb), with the live heap in
DateLUT::getImplementation again. #118286 bounded one family of names that cctz
synthesizes itself, Fixed/UTC±HH:MM:SS. There is a second one, and it is still unbounded:

cctz resolves every name of the form libc:<suffix> through the C library instead of the
time zone database - TimeZoneIf::Make routes it to TimeZoneLibC::Make, which never fails
for any suffix. libc:localtime and libc:UTC are cctz's own internal, test-only
interfaces, documented as "subject to change/removal without notice. Do not use them", and
any other suffix is accepted just as well and silently behaves as UTC. isSupportedTimeZoneName
returns true for every name that does not start with Fixed/, so all of them are accepted.

The suffix is unrestricted, so this family has no bound at all, and every name that gets
loaded permanently costs ~4.6 MiB in the DateLUT cache, which never evicts anything because
callers keep bare const DateLUTImpl & references into it. Measured on master, linear:

distinct libc: names used peak RSS
1 223 MB
200 1136 MB
400 2056 MB

So toDateTime(x, '<name>'), the session_timezone setting, binary type decoding and the
time zone of an Arrow or ORC timestamp column could all make the server allocate memory
without bound that it never gives back.

That the fuzzer reaches this: 50 files of its current corpus contain libc:, while
Fixed/UTC and posix/ appear in none - the Fixed/ cap from #118286 is holding, and this
is what is left. The arithmetic agrees too: 5.78 GB of live heap is ~1231 instances, where the
597 names of the time zone database plus all 113 legal fixed offsets can only reach 710. And
libFuzzer blamed the empty input (oom-da39a3ee5e6b4b0d3255bfef95601890afd80709) on four of
the eight failing nights, which is what cumulative growth looks like: no single input is at
fault, the target just crosses the RSS limit eventually.

Nothing legitimate names these zones, so the whole prefix is rejected. Unlike
Fixed/UTC±HH:MM:SS, which reading an Arrow or ORC timestamp column with a fixed-offset time
zone deliberately produces, libc: names appear nowhere in src or tests, and they are
absent from system.time_zones. Rejecting them also stops
SELECT toDateTime(0, 'libc:whatever') from answering 1970-01-01 00:00:00 instead of
reporting the name back.

SettingFieldTimezone::validateTimezone goes through the same predicate, so a
session_timezone value cannot be accepted and then fail on every query.

This does not make the cache bounded in absolute terms - enumerating the 597 names of the time
zone database still accumulates ~2.9 GB, the residue of #107459 that #118286 already noted - it
removes the second way to grow it without bound.

Changelog category (leave one):

  • Bug Fix (user-visible misbehavior in an official stable release)

Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):

Fix unbounded memory growth from time zone names of the form libc:<suffix>. These are internal interfaces of the cctz library that ClickHouse never intended to expose: any suffix was accepted, each distinct name permanently cost ~4.6 MiB that the server never gave back, and the time zone silently behaved as UTC instead of the name being reported as unknown. They are rejected now.


Workflow [PR]
Sync PR [sync-upstream/pr/119634]

Version info

  • Merged into: 26.9.1.1486 (included in 26.9 and later)

`cctz` resolves every name of the form `libc:<suffix>` through the C library instead of the
time zone database. `libc:localtime` and `libc:UTC` are its own internal, test-only
interfaces, and any other suffix is accepted just as well and silently behaves as UTC. The
suffix is unrestricted, so this family of accepted names has no bound, and every name that
gets loaded permanently costs ~4.6 MiB in the `DateLUT` cache, which never evicts anything
because callers keep bare `const DateLUTImpl &` references into it. Measured at 4.60 MiB of
peak RSS per distinct name, growing linearly.

This is the second such family. #118286 bounded `Fixed/UTC±HH:MM:SS`, but
`isSupportedTimeZoneName` returns true for every name that does not start with `Fixed/`, so
the nightly `data_type_deserialization_fuzzer` has run out of memory every night since, with
its live heap in `DateLUT::getImplementation`. 50 files of that target's corpus contain
`libc:`, while `Fixed/UTC` and `posix/` appear in none, and libFuzzer blamed the empty input
on four of the eight nights - the growth is cumulative, not the fault of one input.

Rejecting the prefix also stops `toDateTime(0, 'libc:whatever')` from answering with a UTC
value instead of reporting the name back.

https://s3.amazonaws.com/clickhouse-test-reports/praktika.html?REF=master&sha=30c98e714f85f24e60583935bbe38b5bbb65aa2d&name_0=NightlyFuzzers&name_1=libFuzzer%20tests&name_1=libFuzzer%20tests

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
@clickhouse-gh

clickhouse-gh Bot commented Sep 12, 2026 •

Copy link
Copy Markdown
Contributor

Workflow [PR], commit [9e58a42]

Summary: ✅


AI Review

Summary

This PR closes the unbounded DateLUT cache growth from libc:* time zone names by rejecting that prefix in the shared validation path. The direction is right, but the current implementation is still not safe to merge because it retroactively rejects previously persisted libc:* values during upgrade, attach, and deserialization, with no compatibility path.

Findings

❌ Blockers

  • [src/Common/DateLUTImpl.cpp:84] [dismissed by author -- https://github.com/Forbid libc: time zone names #119634#discussion_r3996796543] Rejecting libc: in the shared DateLUTImpl constructor breaks old persisted objects, not just new SQL input. Every explicit DateTime / DateTime64 still reconstructs its zone through DateLUT::instance in src/DataTypes/TimezoneMixin.h:22-25, binary type decoding rebuilds those types from stored zone strings in src/DataTypes/DataTypesBinaryEncoding.cpp:607-625, and timezone settings/configs are revalidated on read/startup in src/Core/SettingsFields.cpp:620-627 and src/Daemon/BaseDaemon.cpp:312-319. So a table metadata entry, serialized type, or persisted timezone setting that used to accept libc:* will now fail after upgrade or ATTACH. “I don't expect we have any” is not a compatibility story for existing clusters. Suggested fix: keep rejecting new user input, but preserve legacy stored values when reading existing metadata/types/settings (for example by canonicalizing old libc:* values to UTC on load) or gate the new rejection behind compatibility.
Tests
  • ⚠️ The new stateless test covers fresh SQL input and SET session_timezone, but it does not exercise the upgrade path that is broken by the blocker above: loading legacy DateTime('libc:*') / DateTime64(..., 'libc:*') metadata or decoding older binary-encoded types/settings.
Final Verdict

Changes requested. The OOM fix itself looks sound, but the shared rejection path introduces a backward-incompatible upgrade failure for previously persisted libc:* time zone values.

LLVM Coverage Report

Measured on commit 9e58a42.

Metric Baseline Current Δ
Lines 89.00% 89.00% +0.00%
Functions 91.80% 91.80% +0.00%
Branches 81.40% 81.50% +0.10%

Changed lines: Changed C/C++ lines covered: 12/12 (100.00%) · Uncovered code

Full report · Diff report

@clickhouse-gh clickhouse-gh Bot added the pr-bugfix Pull request with bugfix, not backported by default label Sep 12, 2026
Comment thread src/Common/DateLUTImpl.cpp Resolved
@clickhouse-gh clickhouse-gh Bot added the comp-datetime Date/DateTime/TimeZone datatypes and date-time semantics. label Sep 12, 2026

@alexey-milovidov alexey-milovidov left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@alexey-milovidov alexey-milovidov self-assigned this Sep 12, 2026
@clickhouse-gh

clickhouse-gh Bot commented Sep 12, 2026 •

Copy link
Copy Markdown
Contributor

Build profile diff (arm_release)

Comparing 9e58a42da with master a5efd3a38 (stripped binary size, per-symbol sizes and ThinLTO time; compile times per translation unit against the most recent warmup build that recompiled it).

✅ No significant changes.

Binary sizes

programs/clickhouse-stripped: smaller than the master baseline by the known offset between the two builds, so the difference is not shown. A delta that differs from the offset by more than 50% of it is shown, in either direction.

The official master build is compiled with -g and a pull request build is not, and XRay counts debug instructions towards its instrumentation threshold, so master instruments thousands of functions more and its binary is ~0.4% larger no matter what the pull request does.

Compile time of recompiled translation units

7 translation units recompiled, 6 s compile time in total, 7 of them have a recent master baseline.

Job report

@alexey-milovidov alexey-milovidov added the blocker This issue / pr blocks a new release label Sep 13, 2026
@alexey-milovidov

Copy link
Copy Markdown
Member Author

🕵 The only red check, Upgrade check (amd_release), is unrelated to this PR: the flagged line is the benign StorageFileLog (test_1.filelog_bad_path_attach): The absolute data path should be inside \user_files_path`message that04202_filelog_attach_path_outside_user_files` leaves behind for the upgrade restart to re-log. It hit three PRs on 2026-09-12. The allowlist fix is already in progress in #113983. Master has been merged in here to re-run CI.

@clickhouse-gh

clickhouse-gh Bot commented Sep 14, 2026 •

Copy link
Copy Markdown
Contributor

📊 Cloud Performance Report

✅ AI verdict: no_change — no significant changes across 39 queries analysed

This PR only tightens time-zone name validation in DateLUTImpl (rejecting the unbounded libc: name family and adding a test), a one-time validation path that ClickBench queries never hit at scale. None of the flagged ClickBench queries (Q22 URL filter, Q28 URL-length aggregate, Q34 WatchID/ClientIP aggregate) parse time-zone names in their hot path, so the deltas cannot be attributed to this change. Q22's flag came with very noisy source measurements and Q28 is historically flaky; Q34 sits inside master's current variance band. Treating all three as run-to-run variance rather than a real regression.

clickbench

⚠️ 3 inconclusive

Flagged queries (3 of 43)
Query Verdict Baseline median (ms) PR median (ms) Change q-value Hint
⚠️ 22 not_sure 249 275 +10.4% <0.0001 cpu: This PR only tightens time-zone name validation in DateLUTImpl; Q22 is a URL-LIKE filter with GROUP BY that touches no time-zone code, so the +10.4% is run-to-run variance, not a PR effect (source CV was very high).
⚠️ 28 not_sure 1066 1124 +5.5% <0.0001 aggregation: Q28 (per-CounterID URL-length aggregate) does not exercise any time-zone parsing changed here, and this query is intrinsically flaky in history, so the +5.5% is not attributable to the diff.
⚠️ 34 not_sure 1156 1221 +5.6% <0.0001 aggregation: Q34 groups by WatchID/ClientIP and does not touch the time-zone validation this PR changes; the small delta sits within master's current variance band and is not PR-related.

Change = percent below ×2; the ratio of medians (×N faster/slower) beyond, where percent understates the scale. q-value = BH-FDR adjusted p; smaller is stronger evidence. MIRAI flags a query when q < fdr_q (default 0.10) — the value the verdict is based on.

tpch_adapted_1_official

🟢 No significant changes

Debug info
  • StressHouse run: 239c4d18-a897-4a2c-affa-fc099a22600c
  • MIRAI run: 5eb17eb2-c91d-4e11-8938-cf47ce257734
  • PR check IDs:
    • clickbench_182926_1789405977
    • clickbench_182939_1789405978
    • clickbench_182945_1789405977
    • tpch_adapted_1_official_182951_1789405977
    • tpch_adapted_1_official_182983_1789405977
    • tpch_adapted_1_official_182998_1789405977

@alexey-milovidov

Copy link
Copy Markdown
Member Author

🕵 Public CI on 9e58a42 is fully green (154 checks). The only pending item is CH Inc sync: the private sync PR ClickHouse/clickhouse-private#74465 (dd5fc0ae) is MERGEABLE with three red jobs, all unrelated to the libc: time zone rejection (none of them touches time zones, and 05194_time_zone_libc_names passed where it ran). I re-ran the failed jobs.

@groeneai, investigate the last two failures and provide fixes in separate PRs. If fixes are already in progress, link them here.

@groeneai

Copy link
Copy Markdown
Collaborator

Acknowledged, I am taking both. No fix PR is open for either one yet.

04669_creating_set_partitions_independently (600 s timeout). The sibling 04669_window_partitions_independently hit the same per-file timeout on that lane and was disabled under MSan in #117833. This file has no public timeout at all in 90 days: every public red is 26 Code: 158 rows from #114645 itself (the PR that added it) on one day in August, and the worst public duration is 288.8 s with a 124.1 s p50 on Stateless tests (amd_msan, WasmEdge, parallel, 2/3). So the private lane's Keeper metadata plus S3 data is what pushes it past 600 s. I will measure where the file spends its time and choose between shrinking it and the same MSan skip, with the numbers in the PR.

The data_parts_indexes race. The first thing I need to settle is which side owns the missing lock, because that decides whether a public PR can close the race at all. MergeTreeData::getActiveContainingPart(part_info, state, lock) ignores its lock argument (MergeTreeData.cpp:8143-8144), so the token does not prove the caller holds the parts lock, while the two entry points that take no lock argument acquire readLockParts() themselves (:8211, :8217). If the private getStatus reads the index while holding no parts lock, the fix belongs to private code and I will post the precise file and line here rather than open a public PR that does not close the race. If the public side is at fault, it gets its own PR.

I will post each PR link in this thread as it opens.

@alexey-milovidov

Copy link
Copy Markdown
Member Author

🕵 Thanks @groeneai. Status note on CH Inc sync: it flipped to red at 12:16 UTC because re-running the failed jobs of private run 34819353682 cancelled the concurrent run 34834433232 on the same commit (dd5fc0ae), whose only failure was the test_lightweight_restore TSan race above. The rerun itself has 123 jobs green and 0 failed; Integration tests (amd_tsan, 6/6) passed on retry, and only the two amd_msan, distributed cache stateless shards are still running. Nothing to change on the public side: the branch is same-day behind a green master, and no fix for 04238 (#119382) or the other two has landed there yet.

@groeneai

Copy link
Copy Markdown
Collaborator

I looked at the second failure, the TSan race in test_lightweight_restore. The missing acquisition is
on the reader side, and it is in code that is not in this repository, so I cannot close it with a public
PR. Details, because the report points the other way at first glance.

The writer looks guilty in the stack but is not. MergeTreeData::loadDataPart inserts into
data_parts_indexes under the SharedMutex & its caller passes (MergeTreeData.cpp:2698-2702), not
under data_parts_mutex. All three callers are sound: loadDataPartsFromDisk passes a local mutex
while the parent loadDataParts holds lockParts() exclusively from :3006 to :3143, covering the
whole pool run (the comment at :2819 says exactly this), and refreshDataPartsOnce (:3364) and
loadOutdatedDataParts (:3603) pass data_parts_mutex itself. Every other mutation of the index sits
in a function taking a DataPartsLock &.

A correctly locked reader could not have produced this report. DB::SharedMutex is built on
seq_cst atomics (SharedMutex.cpp), so TSan sees happens-before through it, and the chain pool-thread
insert -> waitForAllToFinishAndRethrowFirstError() -> unlock at :3143 -> reader lock_shared ->
read is fully ordered. So the reader held no parts lock at all.

Which read it was. Two of the four getActiveContainingPart overloads take readLockParts()
themselves (:8211-8221) and cannot race. The other two take const DataPartsAnyLock &, and that type
(MergeTreeData.h:147-155) is an empty class whose converting constructors ignore their argument, so it
is a compile-time claim rather than proof: DataPartsSharedLock::unlock() is public (:138) and both
lock types are movable, so a released or moved-from lock still satisfies it. A dead-but-in-scope token
is not hypothetical, the public tree has one already: calculateColumnAndSecondaryIndexSizesLazily
calls parts_lock.unlock() on its caller's lock (MergeTreeData.cpp:8409), which is safe only because
what its four callers read afterwards is guarded by columns_and_secondary_indices_sizes_mutex. The
(part_name, DataPartsAnyLock) overload was widened to accept the token for the private tree in
72020e8fb693a.

The fix. getStatus needs to hold readLockParts() across the getActiveContainingPart call, or
use the self-locking overload if it holds nothing else. SharedMutex is not recursive, so if it already
holds the parts lock at that point then the token is stale and the lock lifetime is what to fix. The
usage shape is the one in MergeTreePartsMover::swapClonedPart (MergeTreePartsMover.cpp:335-338),
where the lock is taken and then handed to the token overload:

auto part_lock = data->lockParts();
auto active_part = data->getActiveContainingPart(cloned_part.part->name, part_lock);

Worth noting that this covers a second consumer: the same getStatus is reached from system.replicas
via StorageSystemReplicas.h:24 and StatusRequestsPool.h:232, not only from the metrics tick.

Why there is no PR from me. src/Storages/StorageSharedMergeTree.* is not in this repository, the
updateImpl branch that calls its getStatus is not in the public copy of that common file (only the
#if CLICKHOUSE_CLOUD include is, from ba3d3f4535f6b), and test_lightweight_restore has no rows in
the public CI database over the last 90 days. There is nothing here I can change that would close this
race, and no public test that would show it.

One thing I could do publicly if you want it: make DataPartsAnyLock assert owns_lock() on the lock
it is constructed from, so the next caller that passes a released or moved-from token fails loudly in
debug and sanitizer builds instead of racing silently. That is a diagnostic rather than the fix, so I am
not opening it unasked.

The first failure, the 04669_creating_set_partitions_independently timeout, is separate and still in
progress; I will answer it here too.

@alexey-milovidov

Copy link
Copy Markdown
Member Author

🕵 Thanks @groeneai, the test_lightweight_restore analysis is clear: the missing readLockParts acquisition is on the private getStatus side, so nothing to change in this PR. The DataPartsAnyLock owns_lock assertion is a reasonable debug/sanitizer diagnostic; if you open it, do so as a separate small PR rather than here. For 04669_creating_set_partitions_independently, please link the fix PR here once it is open.

On CH Inc sync: the successful rerun of private run 34819353682 has 126 green jobs and 0 failures on dd5fc0ae, but the public status stayed red from the cancelled run 34834433232, so I re-ran that (newest) run in full to refresh the verdict. Public head is still 9e58a42.

@groeneai

Copy link
Copy Markdown
Collaborator

I will open the assertion as its own small PR, not here.

Shape: the two DataPartsAnyLock converting constructors (MergeTreeData.h:153-154) assert that the lock handed to them still owns its mutex, so a released or moved-from token aborts in debug and sanitizer builds instead of racing silently. It stays a diagnostic: the readLockParts() acquisition in the private getStatus is what closes the race, and none of that belongs in this PR.

I checked the existing public token sites before promising it, so the assertion should not fire on master paths. The closest case is the four size getters that hand their readLockParts() to calculateColumnAndSecondaryIndexSizesLazily, which releases that lock at MergeTreeData.cpp:8409; afterwards they read only values guarded by columns_and_secondary_indices_sizes_mutex and never build a token from the released lock.

04669_creating_set_partitions_independently is still in progress, and I will link its PR here as soon as it is open.

@groeneai

Copy link
Copy Markdown
Collaborator

04669_creating_set_partitions_independently is fixed in #120055.

I measured first, as promised, and it took both remedies. The four resizable abandon cases were sized by the arming threshold of DeduplicationAbandonController, not by what they assert, so lowering the threshold per case (the granule, or the stream count) lets the rows follow: 3,511,600 to 722,400 rows, those four cases 3.2x cheaper on MSan. But they are only 61.5% of the MSan runtime. The rest is 160 statements over 400-960-row tables, per-statement structure that no resizing reduces and that your Keeper-metadata hypothesis explains exactly. The whole file gains 1.52x, which is not enough headroom to trust a 600 s per-file gate, so it also carries no-msan, the shape of #117833. Per-case numbers for both build arms are in the PR body.

One thing the resizing exposed: those cases asserted nothing about abandoning, because result equality and the max_rows_in_set bound both hold whether or not a stream abandoned. The PR adds that assertion, with the duplicate-head case as an in-file negative control.

Merged via the queue into master with commit 3fba61b Sep 14, 2026
177 checks passed
@alexey-milovidov
alexey-milovidov deleted the forbid-libc-time-zone-names branch September 14, 2026 19:11
@robot-clickhouse robot-clickhouse added the pr-synced-to-cloud The PR is synced to the cloud repo label Sep 14, 2026
@groeneai

Copy link
Copy Markdown
Collaborator

The DataPartsAnyLock owns_lock assertion is open as its own PR: #120093

It stays a diagnostic, active only in debug and sanitizer builds; the readLockParts() acquisition in the private getStatus is what closes the race. No public path can reach the assertion with a lock that no longer owns its mutex, so it should not fire on existing paths.

@clickgapai

Copy link
Copy Markdown
Contributor

@alexey-milovidov — ClickGap found the following in this PR:

Close anything that's wrong or already addressed.

pull Bot pushed a commit to sjoerd2025/ClickHouse that referenced this pull request Sep 22, 2026
`isSupportedTimeZoneName` was a deny-list of two prefixes, `libc:` and `Fixed/`, so acceptance
of every other name was delegated to whatever `cctz`'s filesystem fallback could open. That set
is not the time zone database. `cctz` resolves a name as a path under the time zone database
directory, and with a `file:` prefix as an arbitrary path, so one zone has unboundedly many
names: `Europe/./Amsterdam`, `Europe//Amsterdam`, `file:UTC`, `file:/usr/share/zoneinfo/UTC`,
and any number of repetitions of `./` and `/`. None of them is in `system.time_zones`, and
every distinct name that gets loaded permanently costs ~4.6 MiB in the `DateLUT` cache, which
never evicts anything because callers keep bare references into it. So the cache that the two
previous fixes were bounding was still unbounded, reachable through `toDateTime(x, '<name>')`,
the `session_timezone` setting, binary type decoding, or the time zone of an Arrow or ORC
timestamp column. Peak RSS of `clickhouse-local`, before this change:

  20 uses of `Europe/Amsterdam`                             182 MB
  20 distinct `./`-padded spellings of `Europe/Amsterdam`    303 MB
  100 distinct `./`-padded spellings of `Europe/Amsterdam`   683 MB
  100 distinct `file:` spellings of `UTC`                    679 MB

`file:` was also a way to read a file outside the time zone database directory, which is
exactly what the `CheckTimeZoneName` guard vendored into `contrib/cctz` exists to prevent: a
TZif file copied anywhere on the filesystem loaded and answered as that zone. The open happened
while `DateLUT::getImplementation` held its global mutex, so a name pointing at a FIFO or a hung
network mount would have blocked every time zone lookup server-wide.

Make the check an allow-list: a name is accepted only if it is in the time zone database linked
into the binary - which is exactly what `system.time_zones` lists, and what the documentation of
the `DateTime` type and of `session_timezone` already tell users to use - or if it is one of the
114 `Fixed/UTC±HH:MM:SS` names for the offsets a time zone can really have. So the cache holds
at most 712 entries. This closes the padded spellings and the `file:` prefix in one line,
subsumes the `libc:` prefix, and makes the message the check reports true. The `cctz` fallback
in `custom_factory` is dropped as well, so no name can reach the host's filesystem even if it
gets past the predicate.

Names that only the host's time zone database has are no longer accepted. ClickHouse ships its
own tzdata precisely so that results do not depend on the host, such a name is absent from
`system.time_zones`, and `timezone()` answering a name that no user can spell is itself wrong.
The one place where the host chooses the name is the server's own local time zone, so `DateLUT`
reports that case at startup, naming the zone and how to override it.

This does not make the cache small - the 598 names of the time zone database plus the 114 fixed
offsets still reach ~3.2 GB if all of them are used - it makes it bounded. Shrinking a
`DateLUTImpl`, or evicting entries, is a separate matter (ClickHouse#107459).

A misspelled time zone name is now reported as "Time zone X is not supported. Use a name from
`system.time_zones`, ..." instead of "Cannot load time zone X", so
`03926_arrow_fixed_offset_timezone` is updated.

`05059_formatDateTime_extralong_timezone` checked the 32-byte limit that
`formatDateTimeInJodaSyntax` puts on a time zone name, using `'Etc' || repeat('/', 26) || 'UTC'`
to reach exactly 32 bytes. That spelling is one of the ones this rejects, and the longest real
name, `America/Argentina/ComodRivadavia`, is exactly 32 bytes, so the test uses it instead: the
name the per-row reservation has to fit is a real one, and nothing longer can be constructed.

Closes: ClickHouse#120188
Related: ClickHouse#119634
Related: ClickHouse#118286

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

blocker This issue / pr blocks a new release comp-datetime Date/DateTime/TimeZone datatypes and date-time semantics. pr-bugfix Pull request with bugfix, not backported by default pr-synced-to-cloud The PR is synced to the cloud repo

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants