Skip to content

Make column data write during INSERT respond to query cancellation - #108357

Open
tiandiwonder wants to merge 28 commits into
masterfrom
fix-column-write-cancellation
Open

tiandiwonder wants to merge 28 commits into
masterfrom
fix-column-write-cancellation

Conversation

@tiandiwonder

@tiandiwonder tiandiwonder commented Jun 24, 2026 •

Copy link
Copy Markdown
Contributor

Problem

A cancelled or KILLed INSERT can keep writing a data part for a long time while serializing column data — for example a large block of wide / Dynamic / Variant columns. The query stays in system.processes with is_cancelled = 1 and does not stop until the whole block is written. This is the dominant uninterruptible location behind the chronic Stress test "Hung check failed, possible deadlock found" (issue #107941): the server-side AST fuzzer feeds boundary-sized blocks and the hung query sits in MergeTreeDataPartWriterWide::writeSingleGranule → serialization.

Root cause

MergeTreeDataPartWriterWide::writeColumn and MergeTreeDataPartWriterCompact::writeDataBlock write a block granule by granule with no cancellation point. The INSERT pipeline only enforces query limits between blocks, so once execution is inside MergeTreeDataWriter::writeTempPart → writer → column serialization, neither cancellation nor max_execution_time is observed until the whole block's columns are written.

Fix

Add MergeTreeDataPartWriterOnDisk::checkWriteCancellation (shared base of both writers) and call it per granule in both column-write loops. Because this is the hottest, most universal writer path (every column of every INSERT and merge), it is kept cheap:

  • The query status is fetched once and cached. It is null outside a query (e.g. background merges), so the check is a no-op there.
  • checkTimeLimit is called only every 65536 rows, so the check frequency is decoupled from index_granularity and never degenerates to a per-row check at small granularity.

checkTimeLimit honors both cancellation and max_execution_time (throw mode). A single pathologically large granule of a slow-serializing column is still not interruptible mid-granule, but the multi-minute hangs are many-granule, so per-granule is sufficient.

Performance is unchanged within noise — INSERT INTO t SELECT number FROM numbers(100000000), 3 runs: before 1.802 / 1.908 / 2.046 s, after 1.747 / 1.872 / 1.943 s.

Regression test 04411_column_write_cancellation.sh: a single large block of high-entropy strings with CODEC(ZSTD(22)) (so column serialization is the active multi-second phase, on a forced Wide part with no skip index) is cancelled mid-write; the test requires KILL QUERY ... SYNC to return within a timeout bound and the background INSERT to fail with QUERY_WAS_CANCELLED.

Relationship to the hung-check umbrella

@groeneai — this is complementary to your #108212. Your fuzzer-executor cancel callback enables cancellation between tasks but (as your analysis notes) cannot interrupt a single in-flight generate/part-write; this PR makes the column-write part of that in-flight work interruptible at granule granularity, which also helps real (non-fuzzer) large INSERTs respond to KILL / timeout. Siblings: #108351 (skip-index build) and #108353 (the primes source, which was the actual hung query in #108212's own arm_tsan run).

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):

Fixed a cancelled or KILLed INSERT continuing to write a data part for a long time while serializing column data (for example a large block of wide or Dynamic columns). The write now stops promptly when the query is cancelled or its max_execution_time is exceeded.


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

`MergeTreeDataPartWriterWide::writeColumn` and
`MergeTreeDataPartWriterCompact::writeDataBlock` write a block granule by granule
with no cancellation point. The INSERT pipeline only enforces query limits
between blocks, so once execution is inside `writeTempPart` -> writer -> column
serialization, a cancelled, KILLed or timed-out query keeps serializing the
whole block. With a large block of wide/Dynamic/Variant columns this runs for
minutes; it is the dominant uninterruptible location behind the chronic
`Stress test` "Hung check failed, possible deadlock found" (the server-side AST
fuzzer feeds boundary-sized blocks, hung in `writeSingleGranule` serialization).

Add `MergeTreeDataPartWriterOnDisk::checkWriteCancellation`, called per granule
in both writers. To keep it cheap on this hot path (every column of every INSERT
and merge): the query status is fetched once and cached (null outside a query,
e.g. background merges, so the check is a no-op there), and `checkTimeLimit` is
only called every 65536 rows, so the frequency is decoupled from
`index_granularity` and never degenerates to a per-row check. INSERT throughput
of `numbers(100000000)` is unchanged within noise.

Related: #108212
Related: #108351

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

clickhouse-gh Bot commented Jun 24, 2026 •

Copy link
Copy Markdown
Contributor

Workflow [PR], commit [ed5e3ed]

Summary: ✅


AI Review

Summary

This PR adds cancellation polling across several long-running writer phases in MergeTree part creation and backs it with focused stateless regressions for wide parts, compact parts, wide-row blocks, and the SZ3 upfront dimension scan. Most of the original uninterruptible regions are now covered, but the current head still leaves the sorted-INSERT permutation stage outside the new cancellation checks, so the promised "cancelled INSERT stops promptly while writing the part" contract is not fully met yet.

Findings

❌ Blockers

  • [src/Storages/MergeTree/IMergeTreeDataPartWriter.cpp:22-45,55-73; src/Storages/MergeTree/MergeTreeDataPartWriterCompact.cpp:262; src/Storages/MergeTree/MergeTreeDataPartWriterWide.cpp:407-445] Sorted INSERTs can still spend a long time in the writer after the source is fully read but before the first checkWriteCancellation(). writeTempPartImpl passes a permutation for keyed MergeTree tables, and both writers apply it up front: Compact permutes the whole Block via permuteBlockIfNeeded, while Wide permutes PK / skip-index columns in getIndexBlockAndPermute and then permutes every remaining data column before entering writeColumn. Those permute() calls are full-column copies for the heavy types this PR is targeting (String, Dynamic, Object, Variant), so a KILL QUERY or throw-mode max_execution_time can still block in an ordinary sorted insert until the permutation finishes. The new tests all use ORDER BY tuple(), so they never exercise this path.
    Suggested fix: make the permutation stage itself interruptible (for example by threading the same cancellation callback through permuteBlockIfNeeded / getIndexBlockAndPermute and chunking large permute/index operations), and add a keyed-table regression that proves cancellation is observed while the permutation is in flight.
Final Verdict

Request changes.

LLVM Coverage Report

Measured on commit ed5e3ed.

Metric Baseline Current Δ
Lines 88.50% 88.50% +0.00%
Functions 91.80% 91.80% +0.00%
Branches 80.80% 80.80% +0.00%

Changed lines: Changed C/C++ lines covered: 163/178 (91.57%) · Uncovered code

Full report · Diff report

@clickhouse-gh clickhouse-gh Bot added the pr-bugfix Pull request with bugfix, not backported by default label Jun 24, 2026
@alesapin alesapin self-assigned this Jun 24, 2026
@groeneai

Copy link
Copy Markdown
Collaborator

Confirmed, and the two are complementary rather than overlapping.

#108212 attaches a cancel callback to the fuzzer's CompletedPipelineExecutor, which is only polled between pipeline tasks. A part-write is a single task, so once execution enters writeTempPart -> writer -> column serialization, that callback cannot fire until the task returns. Your per-granule checkWriteCancellation in writeColumn / writeDataBlock is exactly the in-flight cancellation point that callback cannot reach. Both key off the same outer QueryStatus, so KILL / timeout is observed consistently in both places.

In-flight half of #107941 as I read the set:

On your "single pathologically large granule is still not interruptible mid-granule" caveat: in the fuzzer path #108212 caps the read at max_rows_to_read=1e5 with read_overflow_mode=break, so a fuzzed INSERT writes at most ~1e5 rows total. That bounds the single-granule worst case (a granule cannot hold more rows than exist) even if index_granularity is randomized large, so the mid-granule window stays bounded for the fuzzer scenario. The unbounded-single-granule case only remains for real large INSERTs, which this PR still improves over the status quo.

Together these close the in-flight-hang half of #107941. Makes sense to track #108357 / #108351 / #108353 under #107941 as the in-flight-cancellation fixes alongside #108212.

@Michicosun Michicosun left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Can we instead inject this check into WriteBuffer::next?

The regression test could pass even with the writer-side check removed, and was
flaky on sanitizer builds. Both problems came from cancelling at the wrong phase:

- It cancelled `INSERT INTO ... SELECT randomString(64) FROM numbers(...)` after a
  fixed 2s wait, which only proves the query ran for 2s, not that it reached
  `MergeTreeDataPartWriterWide::writeColumn`. On slow builds the query could still
  be generating the single `randomString` block, an uninterruptible phase, so
  `KILL QUERY ... SYNC` blocked until generation finished and tripped the tight
  `timeout 5` -- the source of the `KILL QUERY SYNC did not return in time` flake
  on `amd_tsan` / `amd_asan_ubsan`.

Rework so the cancel is observed inside a single large `writeColumn`:

- Pre-materialize the high-entropy strings into a plain (fast-to-read) source
  table, so the measured `INSERT ... SELECT` spends its time in `ZSTD(22)` column
  serialization, not in `randomString` generation.
- Force the whole input into one insert block via `min_insert_block_size_rows`, so
  the writer loops over many granules inside one `writeColumn` call -- the only
  place the new per-granule check can interrupt (a small block is already
  cancellable between blocks).
- Use a deterministic phase signal: wait until `read_rows == ROWS` (source fully
  read and squashed, i.e. execution is inside that one big `writeColumn`) before
  sending the `KILL`.
- Add `no-random-settings`: the test needs the read/time/memory limits at their
  unlimited defaults (a random `max_rows_to_read` / `max_memory_usage` would abort
  the INSERT early, and a random `max_execution_time` would terminate it instead of
  our `KILL`).

Verified on a local Debug build: with the fix `KILL QUERY ... SYNC` returns in
~0.2s with `QUERY_WAS_CANCELLED` ("killed promptly"); with the writer-side check
removed the same `KILL` blocks on the full-block write and the test prints
"KILL QUERY SYNC did not return in time", so the test now genuinely guards the fix.

CI report: https://s3.amazonaws.com/clickhouse-test-reports/json.html?PR=108357&sha=88213d47a006f86119aa4c0b81b0423afec399fe&name_0=PR&name_1=Stateless%20tests%20%28amd_tsan%2C%20parallel%2C%201%2F2%29

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
@tiandiwonder

tiandiwonder commented Jun 25, 2026 •

Copy link
Copy Markdown
Contributor Author

Can we instead inject this check into WriteBuffer::next?

@Michicosun WriteBuffer::next is the universal flush for every buffer (client response, logs, all storages) and also runs on the finalize path, where throwing QUERY_WAS_CANCELLED could abort part finalization or std::terminate during unwinding — so it is too broad and unsafe for a throwing check. The per-granule check stays scoped to column serialization on the query thread. Happy to revisit if you still prefer next.

The previous revision forced the destination to a Wide part
(`min_bytes_for_wide_part = 0`, `min_rows_for_wide_part = 0`), so it only
exercised `MergeTreeDataPartWriterWide::writeColumn`. The PR also adds the
cancellation check to `MergeTreeDataPartWriterCompact::writeDataBlock`, and that
path had no regression coverage -- the test would still pass if the compact-side
call were removed.

Parameterize the scenario into a `run_case` helper and run it against both a
forced-Wide and a forced-Compact destination (the Compact case sets both
`min_*_for_wide_part` thresholds above the part size). Each case independently
requires `KILL QUERY ... SYNC` to be observed from its writer loop.

Verified on a local Debug build: with the fix both cases print "killed promptly"
(KILL returns in ~0.2-0.4s; part_type confirmed Wide and Compact respectively);
with the Compact `checkWriteCancellation` removed and rebuilt, the wide case still
passes but the compact case prints "KILL QUERY SYNC did not return in time", so the
test now guards both writer cancellation points.
@Michicosun

Copy link
Copy Markdown
Member

so it is too broad and unsafe for a throwing check.

No, it is not. Throwing there is completely normal; it is not a noexcept method. All code must accept the fact that it can throw.

Per reviewer feedback (Michicosun), replace the QueryStatus::checkTimeLimit()
call in checkWriteCancellation with a direct check of the query's is_killed
flag. CancellationChecker sets is_killed both on an explicit KILL QUERY and on a
'throw'-mode max_execution_time timeout, so this single flag covers cancellation
and throw-mode timeouts. In 'break' mode the flag stays unset, so the writer
finishes the current block and yields the graceful partial INSERT that mode
promises.
@groeneai

Copy link
Copy Markdown
Collaborator

@alexey-milovidov this Stress test (arm_release) failure is a pre-existing trunk bug in the DistanceTransposedPartialReadsPass analyzer pass, not in this PR. #108357 only touches MergeTreeDataPartWriter* (INSERT column data write), which is not on the failing code path.

The server-side AST fuzzer mutated a QBit query (origin 03377_qbit_parameters.sql) into:

SELECT id, round(L2DistanceTransposed(vec, _CAST([1.,1.,1.,1.], 'Dynamic(max_types=18)'), 4), 1) AS dist
FROM qbit_param_test ORDER BY id ASC NULLS LAST

The reference vector is Dynamic, so the original function resolves to a Dynamic result. The pass rewrites the reference vector to a plain Array(Float32), re-resolves the call to Float64, then the post-rewrite type check aborts because the result type changed: Before: Dynamic(max_types=18), after: Float64 (STID 3773-49b1).

Not PR-caused: the same LOGICAL_ERROR hit 9 other unrelated PRs and master over the last 30 days.

Fix: #105387 (open). Its current HEAD already covers this. The guard now skips the optimization when the reference vector is Dynamic (or Variant / Nullable) and can carry a non-array value, so the type-changing rewrite never runs and the whole column is read instead. Verified locally on a debug build: the pre-fix pass aborts on the query above with exactly this Before: Dynamic(max_types=18), after: Float64 assertion, and with #105387 the query returns correct results.

Report: https://s3.amazonaws.com/clickhouse-test-reports/json.html?PR=108357&sha=fb0fc12a59baa12588fd86385a6d5a798200033a&name_0=PR&name_1=Stress%20test%20%28arm_release%29

alexey-milovidov and others added 3 commits July 6, 2026 00:14
The writer-side cancellation check threw `QUERY_WAS_CANCELLED` for every
`is_killed` state. A throw-mode `max_execution_time` also reaches that state
(via `CancellationChecker::cancelQuery(CancelReason::TIMEOUT)`), so an `INSERT`
that timed out while inside `writeColumn` / `writeDataBlock` was reported as a
user cancellation instead of `TIMEOUT_EXCEEDED`, and clients could no longer
distinguish a timeout from an explicit `KILL`.

Use `QueryStatus::throwIfKilled`, which preserves the recorded cancel reason
(`TIMEOUT_EXCEEDED` for a throw-mode `max_execution_time`, `QUERY_WAS_CANCELLED`
for a kill). Extend `04411_column_write_cancellation` with a throw-mode
`max_execution_time` case that expires inside the column write loop and asserts
it is reported as `TIMEOUT_EXCEEDED`.

Addresses the AI review on PR #108357.

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
@alexey-milovidov

Copy link
Copy Markdown
Member

Pushed 2045eda to address the AI-review "Request changes" (preserving the timeout error code).

The writer-side check now calls QueryStatus::throwIfKilled instead of unconditionally throwing QUERY_WAS_CANCELLED. throwIfKilled preserves the recorded cancel reason — TIMEOUT_EXCEEDED for a throw-mode max_execution_time and QUERY_WAS_CANCELLED for an explicit KILL — so a query that times out inside writeColumn / writeDataBlock is still reported as a timeout. This keeps @Michicosun's is_killed-based check (both a KILL and a throw-mode timeout set that flag, the latter via CancellationChecker::cancelQuery(CancelReason::TIMEOUT)) while restoring the distinct timeout error code. 04411_column_write_cancellation gains a throw-mode max_execution_time case that expires inside the write loop and asserts TIMEOUT_EXCEEDED (passes locally, 13.6s).

The two red checks on the previous commit are unrelated to this change (writer-only, INSERT column data write):

  • Stress test (arm_release): the pre-existing DistanceTransposedPartialReadsPass logical error, fix in Fix LOGICAL_ERROR in DistanceTransposedPartialReadsPass with Nullable arguments #105387, as discussed above.
  • Upgrade check (amd_release): a fuzzer-generated background mutation CANNOT_PARSE_TEXT (Cannot parse string 'x' as UInt64: syntax error) in MutatePlainMergeTreeTask, off this PR's code path. The same failure hit 10+ unrelated PRs (108716, 108547, 108431, 94138, 103158, 101352, …) over the last 30 days.

A TIMEOUT_EXCEEDED alone does not prove the writer-side throwIfKilled
branch ran: on a slow build the 8s deadline can expire while the source
is still being read, and the case would pass without exercising the
write loop at all. Mirror the KILL cases and report a failure when
read_rows never reaches the source size, with a query_log re-check to
avoid misjudging a query that exited between polls.

Addresses the review comment from 2026-07-06 on
#108357
The amd_tsan flaky check hangs on the timeout case: the processlist
dump shows the INSERT at elapsed 750s with is_cancelled = 0 and the
server log contains no TIMEOUT cancellation at all, so the 8-second
max_execution_time was never enforced. CancellationChecker's worker
sleeps toward the earliest deadline computed at wait entry; appending
a task with an earlier deadline notifies the condition variable, but
the wake-up predicate is false and the wait resumes toward the stale
deadline, so a deadline can be missed entirely under parallel load.
The untracked INSERT then grinds through the whole ZSTD(22) block and
trips the 600s harness timeout with 'Processes left in process group'.

Bound the wait: give the deadline 60 seconds after the write phase
starts, then KILL the query and fail with a diagnostic line, so the
test always terminates and reports what actually went wrong.

CI: https://s3.amazonaws.com/clickhouse-test-reports/json.html?PR=108357
PR: #108357
alexey-milovidov and others added 3 commits September 16, 2026 04:19
… block

`MergeTreeDataPartWriterCompact::write` routes a block through
`ColumnsBuffer::add` whenever the buffer already holds a partial granule,
and that path appended every column with a single unbounded
`insertRangeFrom`, so a huge block buffered behind a small one could keep
`KILL QUERY` / throw-mode `max_execution_time` waiting for the whole copy.
`add` now takes the writer's cancellation check and appends in chunks of
`IColumn::CANCELLATION_CHECK_PERIOD_ROWS`, polling before each chunk.

The accumulated column's dynamic structure is fixed by
`fixDynamicStructure` before the append, so chunked insertion yields the
same column as a single call. Verified with `clickhouse local`: `Dynamic`
and `JSON` columns merged into Compact parts through 997-row and
20000-row blocks (`OPTIMIZE ... FINAL` with `merge_max_block_size`) hash
identically to the `Memory` source.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
…z3_codec`

Master replaced the generic `allow_experimental_codecs` gate with the
per-codec `enable_sz3_codec` setting, so the `CREATE TABLE ... CODEC(SZ3)`
in this test failed with `BAD_ARGUMENTS` after merging master.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
@alexey-milovidov

Copy link
Copy Markdown
Member

🕵 Status update (2026-09-16):

  • Merged current `master` (`a7090c888756`, clean; the branch was ~8200 commits behind).
  • Addressed the open review thread: `ColumnsBuffer::add` in the Compact writer now polls `checkWriteCancellation` every `IColumn::CANCELLATION_CHECK_PERIOD_ROWS` rows while appending a block (`4fd1ed22e273`, details in the thread).
  • `04827_sz3_dimension_scan_cancellation` adapted to the new per-codec gate `enable_sz3_codec` that replaced `allow_experimental_codecs` on master (`80056f4da3ee`).
  • Local release build OK; `04411`, `04661`, `04827` pass against a local server.

All four reds of the previous run were infrastructure, not this PR: both `Bugfix validation (functional tests)` jobs died with `Could not find master builds in S3` (and `Finish Workflow` is their collateral), and `Integration tests (amd_asan_ubsan, db disk, old analyzer, 6/6)` failed with `Container memory budget exceeded (/docker)`. The fresh run on the merged branch should clear them.

/// column, and matching the dynamic structure of a block re-inserts the whole column. Poll
/// cancellation per column here and hand the same check to the statistics calculation, so a
/// `KILL QUERY` that arrives while the writer is still preparing the first block is observed.
auto check_cancellation = [this] { checkWriteCancellation(); };

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

prepareBlockForWriting is now interruptible, but the ordinary sorted-INSERT path still has an unbounded writer-side window immediately afterwards. MergeTreeDataWriter::writeTempPartImpl passes a permutation for unsorted ORDER BY tables (MergeTreeDataWriter.cpp:1111-1112), and then the writers apply it before the next checkWriteCancellation(): Compact runs permuteBlockIfNeeded(result_block, permutation, nullptr) and Wide permutes PK / skip-index / data columns via getIndexBlockAndPermute / column->permute(*permutation, 0) (IMergeTreeDataPartWriter.cpp:22-45, MergeTreeDataPartWriterWide.cpp:407-445).

Those permute() calls are full-column copies for the heavy types this PR is targeting (ColumnString::indexImpl, ColumnObject::permute, ColumnVariant::permute) and they do not poll cancellation themselves. So a KILL QUERY that arrives after the source is fully read can still sit in the writer for a long time on a normal keyed MergeTree, and the new regressions miss it because they all use ORDER BY tuple() (no permutation). Please make the writer-side permutation stage interruptible too, and add a keyed-table cancellation test that reaches this path.

tiandiwonder and others added 2 commits September 21, 2026 05:42
…uilds

`04827_sz3_dimension_scan_cancellation` failed three of five runs in the tsan flaky check with
`KILL QUERY SYNC did not return in time`. The cancellation point is not at fault: `KILL ... SYNC`
returns when the query is gone, so the bound also covers tearing down the squashed block, which at
4M rows peaks near 2 GiB. Measured from the failing job's own log, the five runs took 13.4, 13.7,
14.6, 15.9 and 16.8 seconds against a 15 second bound - the outcome was decided by which side of the
bound the teardown landed on.

Shrink the block to 1M rows on a sanitizer or debug build rather than widening the bound. The scan
this test is about is proportional to the row count as well, so both sides of the assertion shrink
together and the bound stays a real one. Measured on this branch's tsan build:

    with the fix:     kill returns in 1.9s, test runs in 22-25s (was ~108s), 4 of 4 runs pass
    without the fix:  the kill must wait out the whole write, which takes 35.2s at 1M rows

so the 15 second bound still separates the two by more than a factor of two in each direction.
Release builds keep 4M rows and are unaffected.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
ylw510 pushed a commit to ylw510/ClickHouse that referenced this pull request Oct 24, 2026
…umns

The column-write loops of `MergeTreeDataPartWriterCompact::writeDataBlock` and
`MergeTreeDataPartWriterWide::writeColumn` iterate over all granules of a block
with no cancellation point. Query limits of an INSERT are checked only between
blocks (`MergeTreeSink::consume`, the pipeline executor), so an INSERT that is
killed, or cancelled for `max_execution_time`, keeps writing its current block
to the end. With small granules and columns with many substreams (JSON,
Dynamic, Variant) or with projections this takes minutes, and the Stress test
hung check reports it (for example 566 s in `SerializationVariant` /
`SerializationDynamic` under `writeProjectionPart` on arm_tsan).

Call `CurrentThread::checkIfNotCancelled` at the start of every granule in
both loops. In a query thread group it throws `QUERY_WAS_CANCELLED` or
`TIMEOUT_EXCEEDED` from the query's `QueryStatus`; in a merge or mutation
thread group it throws the `ABORTED` that `MergeTask` / `MutateTask` already
throw between blocks; with no thread group it does nothing. The part being
written is not committed, as with any other error inside the writer. The
skip-index loop of the same writer already checks per granule (ClickHouse#108351).

This is the column-write-loop part of ClickHouse#108357.

The new test kills a single-block INSERT of 1-row granules while it writes
the part, for both Compact and Wide parts.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@clickhouse-gh clickhouse-gh Bot added comp-part-formats Formats of MergeTree data parts in the public repository, that is how a part is laid out on disk ... and removed comp-mergetree MergeTree* family: parts, merges, primary index, column statistics, background data transformation. labels Nov 19, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

comp-part-formats Formats of MergeTree data parts in the public repository, that is how a part is laid out on disk ... pr-bugfix Pull request with bugfix, not backported by default

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants