Skip to content

Add part_storage_type column to system.parts - #110606

Merged
alexey-milovidov merged 25 commits into
masterfrom
add-part-storage-type-and-timeseries-irate
Aug 1, 2026
Merged

alexey-milovidov merged 25 commits into
masterfrom
add-part-storage-type-and-timeseries-irate

Conversation

@alexey-milovidov

@alexey-milovidov alexey-milovidov commented Jul 15, 2026 •

Copy link
Copy Markdown
Member

Documents the part_storage_type column of system.parts, which reports the storage type (Full vs Packed) of each part's DataPartStorage, mirroring the same column that already exists on system.part_log.

This PR originally introduced the column itself (ported from the Cloud-only fork, as a follow-up to #110590 whose survey found it missing, blocking 2 private-fork tests from being ported). While it was in review, master independently landed the identical runtime change via #108118, so the remaining diff here is a documentation/test follow-up:

  • the column list in docs/en/operations/system-tables/parts.md and docs/en/operations/system-tables/dropped_tables_parts.md, plus the part_log.md example;
  • the same additions in the published Mintlify tree — docs/reference/system-tables/parts.mdx, docs/reference/system-tables/dropped_tables_parts.mdx and docs/reference/system-tables/part_log.mdx — because the legacy docs/en tree is not published, so a docs/en-only change would document nothing for readers. There is no in-repo generator for the system-tables pages of that tree yet, so its generated regions are updated by hand and the PR carries the pr-autogenerated-docs label, as the generated-region guard requires;
  • inline-code wording in the column comments in StorageSystemParts.cpp and PartLog.cpp (the source of truth for the generated column lists), including a more accurate description of Packed: most part files go into a single archive, while projections and a few service files such as txn_version.txt are still written separately;
  • a minimal test 04548_part_storage_type_column checking the column exists and is queryable.

Related: #110590
Related: #108118

Changelog category (leave one):

  • Documentation (changelog entry is not required)

Version info

  • Merged into: 26.8.1.563 (included in 26.8 and later)

alexey-milovidov and others added 2 commits July 15, 2026 18:38
Expose the storage type (`Full` vs `Packed`) of each part's
`DataPartStorage` via a new `part_storage_type` column, mirroring
the column that already exists on `system.part_log`. The accessor
chain (`IMergeTreeDataPart::getDataPartStorage().getType()`) was
already public; this just wires it into the system table, the same
way `part_type` is.

Ported from the Cloud-only fork, which has this column already.
Note the Packed part-storage format itself (a whole part stored as
a single blob) is not yet wired up in this repository, so the
column currently always reports `Full` - the test only checks that
the column exists and is queryable.

Co-Authored-By: Claude Sonnet 5 <[email protected]>
These are aliases for the already-public timeSeriesInstantRateToGrid
and timeSeriesInstantDeltaToGrid aggregate functions. A Cloud
customer was testing the feature under these old names before it
was renamed, so the private fork kept them registered for backward
compatibility; porting the same two alias registrations here for
the same reason.

Everything the aliases point to (AggregateFunctionTimeseriesInstantValue,
its registration, docs, and settings) was already present and
unchanged - this is purely two `registerAlias` calls.

Co-Authored-By: Claude Sonnet 5 <[email protected]>
@clickhouse-gh

clickhouse-gh Bot commented Jul 15, 2026 •

Copy link
Copy Markdown
Contributor

Workflow [PR], commit [d343842]

Summary: ✅


AI Review

Summary

This PR is now a documentation/test follow-up for the already-landed system.parts.part_storage_type runtime change. The touched system-table pages and source comments mostly bring the Packed/Full wording into line with the implementation, but one published English knowledge-base page still documents the old, stronger Packed guarantee, so the docs surface is not yet consistent.

Findings

⚠️ Majors

  • [docs/reference/system-tables/parts.mdx:35] The PR corrects the part_storage_type wording on the system-table pages, but docs/resources/support-center/knowledge-base/data-management/understanding-part-types-and-storage-formats.mdx:64-72 still says Packed means all files are bundled into one archive. That contradicts the implementation and the new wording here, so users will still see two different contracts after merge. Update that support-center article in the same PR to say only most part files live in the archive and mention the separately written projections and service files.
Final Verdict

⚠️ Changes requested until the remaining published English Packed description is brought into sync.

@clickhouse-gh clickhouse-gh Bot added the pr-feature Pull request with new product feature label Jul 15, 2026
@alexey-milovidov alexey-milovidov changed the title Add part_storage_type column and timeSeriesIrateToGrid/timeSeriesIdeltaToGrid aliases Add part_storage_type column to system.parts Jul 15, 2026
The Fast test check failed because SHOW CREATE TABLE system.parts now
includes the part_storage_type column added in the previous commit.
The Finish Workflow check's feature_docs.py hook failed because this PR
is labeled as a New Feature but touched no docs/ files. Add
part_storage_type to the autogenerated column list in
docs/en/operations/system-tables/parts.md (and its Example output), and
wrap DataPartStorage/Packed/Full in inline code in both the new column's
comment and the pre-existing identical comment on system.part_log, per
project convention.
@mintlify

mintlify Bot commented Jul 16, 2026

Copy link
Copy Markdown
Contributor

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated (UTC)
ClickHouse-docs 🟢 Ready View Preview Jul 16, 2026, 9:39 AM

@mintlify

mintlify Bot commented Jul 16, 2026

Copy link
Copy Markdown
Contributor

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated (UTC)
ClickHouse-docs 🟡 Building – Jul 16, 2026, 9:17 AM

@alexey-milovidov

Copy link
Copy Markdown
Member Author

@groeneai, the remaining CI failures on this PR look unrelated to its change (adding part_storage_type to system.parts):

StorageSystemDroppedTablesParts inherits StorageSystemParts, so it
gained the same `part_storage_type` column added to `system.parts`
in this PR. Update the autogenerated column list on the
`system.dropped_tables_parts` page to match, per review feedback.
@groeneai

Copy link
Copy Markdown
Collaborator

@alexey-milovidov confirmed, both are unrelated to this PR (adding part_storage_type to system.parts).

SIGFPE getEndOfInterval (#110343): the fix is #110346 (mine). All review comments are addressed as of the current head; the only remaining red check is Stateless tests (amd_asan_ubsan, distributed plan, parallel), where all 157 rows are return code: 241 (MEMORY_LIMIT_EXCEEDED) on the runner, i.e. host memory pressure, not the quota change. It is ready for another look / merge.

03915_exchange_tables_race (#110133): the EXCHANGE TABLES vs concurrent SELECT race, in-flight in two open PRs, no further separate PR needed:

@alexey-milovidov

Copy link
Copy Markdown
Member Author

@groeneai, investigate the failure: https://s3.amazonaws.com/clickhouse-test-reports/json.html?PR=110606&sha=93359c59c1f878daeaedc91e6383f9e4ae893ce3&name_0=PR&name_1=Stress%20test%20%28arm_asan_ubsan%2C%20s3%29 and provide a fix in a separate PR. If the fix is already in progress, link it here.

Details: Stress test (arm_asan_ubsan, s3) — Hung check failed, possible deadlock found, auto-matched to the umbrella issue #107941. The query still running at hung-check time was the server-side AST fuzzer (executeASTFuzzerQueries) executing EXPLAIN WHATIF SELECT dictGet('nb_not_nb', materialize('val'), toUInt64(1)), with the stack inside FunctionDictGetNoType::getReturnTypeImpl / getAttributeNamesFromColumn during analyzer constant folding (QueryAnalyzer::resolveFunction) — i.e. a dictGet type-resolution/dictionary-load stall under the fuzzer, unrelated to this PR (which only adds a part_storage_type column to system.parts; the hung-check output contains no mention of system.parts or StorageSystemParts). The sibling cancellation fixes listed in #107941 (#108351, #108357, #108062, #108212) don't cover this dictionary-load-during-analysis path.

@groeneai

Copy link
Copy Markdown
Collaborator

Investigated. The actual hung query was not dictGet (that line was an ILLEGAL_TYPE_OF_ARGUMENT exception in the error-frequency table). The single query in the processlist (is_cancelled=1, elapsed ~3100s) was:

SELECT finalizeAggregation(10 * (SELECT medianState(number) FROM numbers(100000)))

stuck in ReservoirSampler::merge via executeAggregateMultiply during analyzer constant folding.

Root cause: executeAggregateMultiply self-merges the reservoir with exponentiation by squaring, doubling ReservoirSampler::total_values (size_t) each step. A huge multiplier overflows total_values += b.total_values in merge; the wrapped-small value makes frequency drop below 1, turning for (double i = 0; i < sample_count; i += frequency) into a near-infinite loop with no cancellation check. Reproduces deterministically with a huge multiplier and numbers(N), N > 8192.

Fix (saturate on overflow) + regression test in a separate PR: #110779. This one (#110606) is unrelated.

@alexey-milovidov

Copy link
Copy Markdown
Member Author

@groeneai, after merging current master (head f16dcaad) the two earlier reds are gone, but the fresh CI run surfaced two different failures — both look unrelated to this PR (which only adds a part_storage_type column to system.parts; its diff touches no chrono/timeout, disk, or DiskLocalCheckThread code):

Neither has a fix on master yet, so I did not merge again (the branch is only a few hours behind and merging wouldn't clear these). Could you track/fix them in separate PRs, or link existing ones? This PR is otherwise green and AI-approved.

@groeneai

Copy link
Copy Markdown
Collaborator

Both are already tracked with open fix PRs:

  • UBSan signed-integer overflow in duration_cast (STID 2881-3dbd) -> Fix signed integer overflow in condition_variable::wait_for with huge timeouts #106961 "Fix signed integer overflow in condition_variable::wait_for with huge timeouts". Exactly this stack: a user-controllable huge timeout (interactive_delay / queue_max_wait_ms etc.) reaches ConcurrentBoundedQueue::popImpl's wait_for(milliseconds(N)); libc++ casts ms->ns (N * 1000000) in duration.h:93 and overflows int64. The PR adds a saturating helper (caps to 1 year, matching serxa's Fix livelock in CancellationChecker caused by timeout overflow #96450 CancellationChecker precedent), applied at the settings-derived wait_for sites, plus saturation at the SettingFieldTimespan source so a setting can never store a wrapped value. Green + AI-approved; awaiting re-review.

  • DiskLocalCheckThread FILE_DOESNT_EXIST upgrade-restart log noise -> Give each local disk check thread its own probe file #110773 "Allow-list benign DiskLocalCheckThread teardown-race error in upgrade check". The periodic disk-check thread probes a torn-down 02961_storage_config_volume_priority custom disk during the upgrade restart. Scoped allow-list in upgrade_runner.sh (requires DiskLocalCheckThread + clickhouse_disk_checker_ + errno: 2 + "While checking access for disk" together, so genuine broken-disk errors still fail). Distinct from the DiskLocalCheckThread::startup data-race in Log the initial disk check period before scheduling the disk check task #110783.

Neither is caused by this PR.

The column list on the page documents `part_storage_type`, but the
example output below still jumped from `part_type` to `disk_name`,
showing two different schemas for `system.part_log` on the same page.

Addresses the review comment from the AI review.
@alexey-milovidov

Copy link
Copy Markdown
Member Author

@groeneai, investigate the failure: https://s3.amazonaws.com/clickhouse-test-reports/json.html?PR=110606&sha=d9c6d9deca1e7c4fc5965f466d6beede6922b808&name_0=PR&name_1=AST%20fuzzer%20%28amd_debug%29 and provide a fix in a separate PR. If the fix is already in progress, link it here.

Details: AST fuzzer (amd_debug) — Logical error: Bad cast from type A to B (STID: 1499-33a5), concretely Bad cast from type DB::ColumnNullable to DB::ColumnVector<unsigned long> in AggregateFunctionAvg<UInt64>::addBatchSinglePlace under the -OrDefault combinator. Unrelated to this PR (which only adds a part_storage_type column to system.parts) — I reproduced it on a clean local sanitizer build of current master and minimized it to:

SET group_by_use_nulls = 1;
SELECT (SELECT avgOrDefault(val) FROM (SELECT rand64() AS val FROM numbers(10) GROUP BY ALL WITH ROLLUP));

The analyzer creates the outer aggregate for the non-Nullable argument type while the inner GROUP BY ALL WITH ROLLUP query executed with group_by_use_nulls = 1 produces Nullable(UInt64). Filed with full analysis (essential ingredients, the deterministic-key NOT_AN_AGGREGATE sibling symptom, stack) as #110915.

The other red on this run, Integration tests (amd_tsan, 3/6) → test_replicated_database/test.py::test_replicated_table_structure_alter, is the known flaky #110036 (auto-matched by CI, retry_ok — it passed on retry; fix in progress at #110145).

@groeneai

Copy link
Copy Markdown
Collaborator

Acknowledged. Agreed it is unrelated to this PR; tracked at #110915.

Same Bad cast ColumnNullable -> ColumnVector analyzer type-resolution class as the #91119 family, and our open PR #104350 ("Fix correlated subquery + GROUP BY ROLLUP under group_by_use_nulls") already fixes it in QueryAnalyzer for the correlated case. I will verify whether it also covers this non-correlated avgOrDefault minimizer plus the NOT_AN_AGGREGATE sibling: if so I will extend #104350 with your repro and mark it closing #110915, otherwise I will open a separate PR. Will follow up here with the link.

@groeneai

Copy link
Copy Markdown
Collaborator

Update on the 00084_external_aggregation query-level MEMORY_LIMIT_EXCEEDED (maximum: 286.10 MiB) failure tracked from this PR: a fix task is open and I am investigating at full effort; the fixing-PR link will be posted here when it opens.

Since the last update I bisected the 07-25/07-26 onset and can now rule out a committed cause. Full write-up: #108096 (comment)

In short: the signature went 0 hits in 6773 runs over 07-23..07-26 06:00Z to 20 hits in 2209 runs after, but the earliest merge-base across all 20 failing heads is 84a586483272 (07-23 10:50Z) and 59 of 60 builds that ran the test successfully just before the onset already contained it, so no master commit is common to the failing builds and absent from the passing ones. #110573 (PackedStringRef) is separately refuted by the ancestor partition (13 HAS / 7 LACKS). Dataset (web-disk objects unchanged since Jan 2024), runners, docker image and tests/clickhouse-test are all excluded.

The test's own margin is the real defect: max_bytes_before_external_group_by = 200000000 under a 300 MB cap leaves only ~86 MiB of headroom, so an environmental nudge is enough to tip it. I will not raise max_memory_usage; the fix is to make the spill start early enough to leave real headroom, verifying ExternalAggregationWritten still fires so the test does not go vacuous.

@groeneai

Copy link
Copy Markdown
Collaborator

Fixing PR for the 00084_external_aggregation query-level MEMORY_LIMIT_EXCEEDED (maximum: 286.10 MiB, 64.06 MiB chunk in AggregatingTransform) tracked from this PR: #112054 (external, open).

It raises the test's own max_memory_usage from 300000000 to 600000000. That covers the signature: the worst would use value CIDB has recorded for it over the last 14 days is 318.46 MiB across 35 pull requests, well under the new 572.20 MiB cap, and the no-spill peak of roughly 855 MiB still exceeds the new cap, so the test keeps asserting that the aggregation goes to disk.

I had a branch ready that lowered max_bytes_before_external_group_by for the second query instead, but #112054 edits the same lines and covers strictly more: in my local runs at the default filesystem_prefetch_max_memory_usage, the cap raise passed 6/6 while both master and my threshold-only variant failed 6/6 on a second, read-side term (a 4.06 MiB chunk, not the 64.06 MiB Arena step). So I am not opening a competing PR, and this row is owned by #112054.

@alexey-milovidov

Copy link
Copy Markdown
Member Author

Merged current master into the branch and pushed as `385229eb11a` (`0e529671260..385229e`). The branch had drifted to 497 commits / ~37 hours behind (merge-base `859a9abe259`, 07-26 06:03Z), past the point where it is worth keeping stale, and the merge was clean — the live diff is unchanged at 7 files, 32 insertions / 3 deletions, still documentation + test + column-comment wording only (the runtime column itself landed on master via #108118).

No unresolved review threads, no new review summaries, and the AI Review Final Verdict on the previous head was ✅ Approve.

On the two reds from the previous run: neither fix is on master yet, so the merge does not clear them deterministically — it only re-rolls them.

  1. Upgrade check (amd_release) → CANNOT_RESTORE_TO_NONENCRYPTED_DISK — owned by the open Allowlist benign encrypted Backup-engine restore error in upgrade check #109042.
  2. Stateless tests (arm_binary, parallel) → 00084_external_aggregation MEMORY_LIMIT_EXCEEDED — thanks @groeneai for the bisect and the write-up; owned by the open Give 00084_external_aggregation real memory headroom #112054. Nothing further needed from this PR.

Fresh CI is running on the merge commit.

@alexey-milovidov

Copy link
Copy Markdown
Member Author

Merged current master and pushed as 54eea190a22 (385229eb11a..54eea190a22). The merge was clean and the live diff is unchanged at 7 files, 32 insertions / 3 deletions — documentation, test, and column-comment wording only (the runtime column itself landed on master via #108118).

The previous run on 385229eb11a was effectively green: 157 checks passed, 20 skipped, and the only non-green job was Fast test (arm_darwin), which was DROPPED by the infrastructure rather than failing any test. That drop is what turned the aggregate PR and Mergeable Check gates red, so the only way to clear it is a rerun — this merge (the branch was also 381 commits / ~19 hours behind) triggers one.

No unresolved review threads, no new review summaries, and the AI Review Final Verdict on the previous head was ✅ Approve.

The legacy `docs/en` tree is not published; the Mintlify tree under
`docs/reference` is. Add `part_storage_type` to
`docs/reference/system-tables/parts.mdx` and
`docs/reference/system-tables/dropped_tables_parts.mdx` (column list and
example), and update the stale `Packed`/`Full` wording in
`docs/reference/system-tables/part_log.mdx` so it matches the column
comment in the source.

These pages have no in-repo generator for system tables yet, so the
generated regions are updated by hand and the pull request carries the
`pr-autogenerated-docs` label, as the generated-region guard requires.
@alexey-milovidov alexey-milovidov added the pr-autogenerated-docs PR that regenerates docs artifacts from source; exempt from the autogenerated-region edit guard label Jul 30, 2026
@alexey-milovidov

Copy link
Copy Markdown
Member Author

Merged master (the branch was 802 commits / ~1.7 days behind, past my usual staleness threshold) and extended the documentation part of this PR.

New in this push: the part_storage_type documentation is now also applied to the published Mintlify tree — docs/reference/system-tables/parts.mdx, docs/reference/system-tables/dropped_tables_parts.mdx and docs/reference/system-tables/part_log.mdx. Until now the PR only touched the legacy docs/en/operations/system-tables/ tree, which is not published, so it documented the column for nobody: docs/reference/system-tables/parts.mdx still had no part_storage_type line at all, and part_log.mdx still carried the old, object-storage-specific "Packed - all files are stored in a single blob, Full - a blob per file" wording that we corrected here. There is no in-repo generator for the system-tables pages of that tree yet (utils/generate-system-tables-docs targets the Docusaurus docs/operations/system-tables/ layout of the external docs repo, and the nightly autogenerate_docs.py covers settings/functions/engines only), so the generated regions are updated by hand and this PR now carries the pr-autogenerated-docs label, which is exactly the escape hatch ci/jobs/scripts/docs/check_autogenerated_regions.py documents for intentional generated-docs updates. Filling that generator gap is a separate, docs-infra-owned task.

The net diff is otherwise unchanged: documentation, the column comments in StorageSystemParts.cpp / PartLog.cpp (the source of truth), and the 04548_part_storage_type_column test.

No unresolved review threads, no new review summaries; the AI Review Final Verdict on the previous head was ✅ Approve.

@groeneai, all four reds on the previous head (54eea190a22) are unrelated to this PR — its live diff is documentation, column-comment wording and one stateless test, and none of them mention system.parts. CIDB history for each:

  1. Stress test (arm_tsan) → Logical error: Block structure mismatch in joined block stream: different number of columns: __join_result_dummy (STID 0993-3a3c) — trunk-wide: 2 hits 07-27, 5 on 07-28, 7 on 07-29 across 15 distinct PRs including master (PR=0). No tracking issue exists yet; could you file one (or point me at it if I missed it)?
  2. Stress test (amd_asan_ubsan) → UndefinedBehaviorSanitizer (STID 0250-3bba) — src/Functions/toStartOfInterval.cpp:293 signed integer overflow in the origin overload (-9223372036854775808 + -3600000000000). Same family as UndefinedBehaviorSanitizer: signed integer overflow in toStartOfInterval with origin (STID: 0250-4a9f) #112184; the fix is my open Fix signed integer overflow in the origin overload of toStartOfInterval #112045, not on master yet. 28 hits across 28 unrelated PRs in the last four days.
  3. Stress test (amd_tsan) → Logical error: 'SortingAggregatedTransform already got bucket with number 2' (STID 3869-3f96) — tracked by the open Stress test: Logical error: SortingAggregatedTransform already got bucket with number A (STID: 3869-3f96) #111441, fix in the open Fix SortingAggregatedTransform "already got bucket" in multi-layer distributed aggregation #108727 (not on master). Recurs on unrelated PRs (Do not ping the server from the client before every query #111990, Web UI: do not update history on every keypress #109360, Fix fasttest exception in file inferred Nullable cols #102509, Fix CTE column aliases for INTERSECT/EXCEPT queries #110885).
  4. Integration tests (amd_msan, 1/8) → 8 × test_postgresql_replica_database_engine/test_0.py (retry_ok) — Connection reset by peer / server death under MSan; this suite fails in bulk across the fleet (371 rows / 25 PRs on 07-28, 240 rows / 19 PRs on 07-29 including master). No tracker either — worth one for the MSan bulk failure if you agree.

Since none of these fixes are on master, this merge only re-rolls them; it was done for the staleness and to run CI on the new documentation commit.

@alexey-milovidov
alexey-milovidov requested a review from a team as a code owner July 31, 2026 09:30
@alexey-milovidov

Copy link
Copy Markdown
Member Author

Merged master (branch was ~1 day / ~990 commits behind) to re-roll CI. The previous run on 0051584 was green apart from one job — Stateless tests (amd_tsan, parallel) — whose two failures are both known and tracked: 04367_distributed_plan_merge_scatter_multishard timeout (flaky, #112301) and "Scraping system tables" TSan thread leak in clickhouse-local (#110816). Docs check (Mintlify) passed on its first run for this PR. The "Mintlify Deployment" red is the external preview-deployment app failing to revalidate the preview subdomain — not a repo CI check.

Comment thread docs/reference/system-tables/parts.mdx Resolved
@clickhouse-gh

clickhouse-gh Bot commented Jul 31, 2026

Copy link
Copy Markdown
Contributor

LLVM Coverage Report

Metric Baseline Current Δ
Lines 86.50% 86.40% -0.10%
Functions 91.90% 91.90% +0.00%
Branches 78.60% 78.60% +0.00%

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

Full report · Diff report

@alexey-milovidov
alexey-milovidov added this pull request to the merge queue Aug 1, 2026
Merged via the queue into master with commit 1eae5fb Aug 1, 2026
352 of 353 checks passed
@alexey-milovidov
alexey-milovidov deleted the add-part-storage-type-and-timeseries-irate branch August 1, 2026 00:47
@robot-ch-test-poll robot-ch-test-poll added the pr-synced-to-cloud The PR is synced to the cloud repo label Aug 1, 2026
@alexey-milovidov

Copy link
Copy Markdown
Member Author

🕵 This pull request was merged (1eae5fbda2f5b692a13773b31f6f6240f18629e9, 2026-08-01) while the AI Review verdict was still ⚠️ Changes requested for a single Major: the published knowledge-base page docs/resources/support-center/knowledge-base/data-management/understanding-part-types-and-storage-formats.mdx still documented Packed as bundling all part files into one archive, contradicting the part_storage_type wording landed here.

Verified against DataPartStorageOnDiskPacked: projections and files_written_separately (txn_version.txt, delete-on-destroy.txt, invalidated_system_columns.txt) are written outside the archive.

Addressed in a follow-up pull request: #112893 — it fixes both places on that page (the format table and the Packed storage section). The review thread has been replied to and resolved; nothing else is outstanding on this pull request.

alexey-milovidov added a commit to niyue/ClickHouse that referenced this pull request Aug 1, 2026
The knowledge-base page `understanding-part-types-and-storage-formats.mdx` still
claimed that `Packed` storage bundles *all* part files into a single archive.
`DataPartStorageOnDiskPacked` archives all part files *except* projections and the
files listed in `files_written_separately` (`txn_version.txt`,
`delete-on-destroy.txt`, `invalidated_system_columns.txt`), which are written
separately because they can be created or rewritten after the part is written.

This makes the page consistent with the `part_storage_type` description in
`docs/reference/system-tables/parts.mdx` that landed in ClickHouse#110606.

Related: ClickHouse#110606

This branch was successfully deployed

1 active deployment
staging - docs — d3438427 Deployed Jul 31, 2026 by mintlify[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr-autogenerated-docs PR that regenerates docs artifacts from source; exempt from the autogenerated-region edit guard pr-documentation Documentation PRs for the specific code PR 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