Repository navigation
Add part_storage_type column to system.parts - #110606
Conversation
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]>
|
Workflow [PR], commit [d343842] Summary: ✅
AI ReviewSummaryThis PR is now a documentation/test follow-up for the already-landed Findings
Final Verdict
|
This reverts commit 668c167.
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.
|
Preview deployment for your docs. Learn more about Mintlify Previews.
|
|
Preview deployment for your docs. Learn more about Mintlify Previews.
|
|
@groeneai, the remaining CI failures on this PR look unrelated to its change (adding
|
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.
|
@alexey-milovidov confirmed, both are unrelated to this PR (adding SIGFPE
|
|
@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: |
…pe-and-timeseries-irate
|
Investigated. The actual hung query was not SELECT finalizeAggregation(10 * (SELECT medianState(number) FROM numbers(100000)))stuck in Root cause: Fix (saturate on overflow) + regression test in a separate PR: #110779. This one (#110606) is unrelated. |
|
@groeneai, after merging current
Neither has a fix on |
|
Both are already tracked with open fix PRs:
Neither is caused by this PR. |
…pe-and-timeseries-irate
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.
|
@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: 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- The other red on this run, |
|
Acknowledged. Agreed it is unrelated to this PR; tracked at #110915. Same |
|
Update on the 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 The test's own margin is the real defect: |
|
Fixing PR for the It raises the test's own I had a branch ready that lowered |
…pe-and-timeseries-irate
|
Merged current 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
Fresh CI is running on the merge commit. |
…pe-and-timeseries-irate
|
Merged current The previous run on No unresolved review threads, no new review summaries, and the AI Review Final Verdict on the previous head was ✅ Approve. |
…pe-and-timeseries-irate
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.
|
Merged New in this push: the The net diff is otherwise unchanged: documentation, the column comments in 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 (
Since none of these fixes are on |
|
Merged |
LLVM Coverage Report
Changed lines: Changed C/C++ lines covered: 13/13 (100.00%) · Uncovered code |
|
🕵 This pull request was merged ( Verified against Addressed in a follow-up pull request: #112893 — it fixes both places on that page (the format table and the |
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
Documents the
part_storage_typecolumn ofsystem.parts, which reports the storage type (FullvsPacked) of each part'sDataPartStorage, mirroring the same column that already exists onsystem.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,
masterindependently landed the identical runtime change via #108118, so the remaining diff here is a documentation/test follow-up:docs/en/operations/system-tables/parts.mdanddocs/en/operations/system-tables/dropped_tables_parts.md, plus thepart_log.mdexample;docs/reference/system-tables/parts.mdx,docs/reference/system-tables/dropped_tables_parts.mdxanddocs/reference/system-tables/part_log.mdx— because the legacydocs/entree is not published, so adocs/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 thepr-autogenerated-docslabel, as the generated-region guard requires;StorageSystemParts.cppandPartLog.cpp(the source of truth for the generated column lists), including a more accurate description ofPacked: most part files go into a single archive, while projections and a few service files such astxn_version.txtare still written separately;04548_part_storage_type_columnchecking the column exists and is queryable.Related: #110590
Related: #108118
Changelog category (leave one):
Version info
26.8.1.563(included in26.8and later)