Skip to content

Fix Parquet pruning dropping rows that hold a NaN, and write the mandatory nan_count statistic - #116725

Open
groeneai wants to merge 13 commits into
ClickHouse:masterfrom
groeneai:parquet-nan-statistics-pruning
Open

groeneai wants to merge 13 commits into
ClickHouse:masterfrom
groeneai:parquet-nan-statistics-pruning

Conversation

@groeneai

@groeneai groeneai commented Aug 27, 2026 •

Copy link
Copy Markdown
Collaborator

Related: #118110
Related: #107074

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 reading a Parquet file whose float column holds a NaN: row group and page pruning silently dropped rows matching predicates such as val != 5, val NOT IN (5), val IN (nan) or sign(val) = 1, because Parquet computes float min/max from non-NaN values only. ClickHouse now also writes the nan_count statistic that the format makes mandatory for floating point columns, so the files it writes keep full pruning.

Description

A Parquet file whose float column holds a NaN silently returns wrong results at default settings: Parquet computes float min/max from non-NaN values only, so a row group holding [5.0, 5.0, nan] advertises min = max = 5.

SELECT count() FROM file('nan.parquet', Parquet) WHERE val != 5.;      -- 0, must be 1
SELECT count() FROM file('neg.parquet', Parquet) WHERE sign(val) = 1;  -- 0, must be 1 ([-5, -5, nan])

KeyCondition::checkInHyperrectangle treats containment in those bounds as proof that every row satisfies an atom, which a negated atom then inverts into a wrong prune. Set atoms fail the other way: membership treats NaN as equal to NaN (nan IN (nan) is 1, nan = nan is 0). And under a monotonic chain the atom is compared against the chain's image of the bounds, which the hidden row's image can escape: sign maps -5, -5 to -1, -1 and NaN to 1.

checkInHyperrectangle now takes an optional per-key-column mask marking bounds computed without NaNs; the reader builds it from Statistics.nan_count and ColumnIndex.nan_counts and passes it at four pruning sites. Pruning is given up only for a negated range or set atom whose bounds are contained, a set atom holding a NaN, a tuple or chained set atom, and a range atom carrying a function chain.

The mask is a may, and this writer never emitted nan_count, although parquet.thrift requires it for float columns "even if it is zero", so it fired for NaN-free files too. It is now written, for the column chunk and the page index, so files ClickHouse writes keep pruning, with 04545_parquet_minmax_stats_type_mismatch unchanged here.

Reproduced on 26.8, 26.3 and 25.8. Found while working on #107074, which fixes the same invariant for MergeTree; #118110 stays open for that, hence Related: not Closes:.

Accepted cost, carriers left alone, and residuals

Accepted cost. A float column in a file written without nan_count loses chain-based pruning, including the implicit cast of a width-mismatched read. The mask is cleared only by an explicit nan_count == 0, so that is every file an older ClickHouse or another writer produced without the field, not a rare shape. Narrowings: only the Parquet reader builds this mask; float columns only; chain-free atoms keep pruning; every file this writer produces is exempt.

Not covered. A negated float comparison (NOT (val < 6.), chain or not) is still pruned wrongly: inversion push-down folds it into a positive range before this guard runs, so no statistic can rescue it. #107074 declines that fold for float operands, with no code here.

Carriers left alone. MergeTree part minmax, the minmax and set skip indexes and the column-statistics part pruner are already in #107074. Iceberg data-file pruning reaches this guard through mayBeTrueInRange and is untouched here: it would also need nan_value_counts, which is in the manifest schema but unread (the manifest-list summaries already guard on contains_nan); happy to do that separately. StorageHive owns its own call sites, exposure confined to Float32. Native ORC is unaffected (measured): liborc does the comparison. The set arm widens for any chained set atom, not only a NaN-hiding one; that costs nothing for files this writer produces, so it stays blunt.

Residual, offered separately. Six monotonicity providers (intExp2, intExp10, toDate, ...) report is_monotonic for a NaN endpoint then throw when the value is applied, so WHERE intExp2(float_pk) > 1000 over a MergeTree table holding a NaN fails during index analysis. Nothing here evaluates a synthetic value and the un-pruned query throws too, so no wrong result; a8f3ba2262824 is the precedent. Same class nihalzp is reviewing on #107074.


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

groeneai and others added 2 commits August 27, 2026 10:18
Parquet statistics for a float column exclude NaN, both per parquet.thrift
(a reader must assume nan_count > 0 when the field is absent) and as emitted
by ClickHouse's own writer. A row group holding [5.0, 5.0, nan] therefore
advertises min = max = 5.

KeyCondition::checkInHyperrectangle treats containsRange over those bounds as
proof that every row satisfies the atom. That claim is false when a NaN is
hidden outside the bounds, and three RPN element kinds turn it into a wrong
prune: FUNCTION_NOT_IN_RANGE, FUNCTION_NOT_IN_SET and FUNCTION_NOT. Set atoms
break in the other direction too, because set membership treats NaN as equal
to NaN (nan IN (nan) is 1 while nan = nan is 0), so a hidden NaN row can match
a set that the finite bounds say is unreachable.

The dense checkInHyperrectangle takes an optional per-key-column mask saying
which bounds were computed from non-NaN values only. The Parquet reader builds
it from Statistics.nan_count per row group and ColumnIndex.nan_counts per page,
and passes it at its four pruning sites, including the bloom/dictionary and
GeoParquet bbox consumers that reuse the row group's hyperrectangle.

Positive predicates derive can_be_true from intersectsRange alone and are
unaffected. The only pruning given up is a float column whose statistics say
min == max == c under a predicate excluding exactly c.

Co-Authored-By: Claude Opus 5 <[email protected]>
The tuple early return in `setMayMatchHiddenNaN` is correctness, not the
conservatism the previous commit called it. `MergeTreeSetIndex` orders
`ordered_set` lexicographically, so a NaN in a non-leading tuple position is
not the last element of its own column and the last-element test answers no:
`(i, val) IN ((1, nan), (2, 7.))` over a row group whose `val` statistics say
`min = max = 5` returns nothing without it. `LowCardinality(Nullable(Float64))`
is likewise the only structure that distinguishes the unwrap order in
`typeMayHoldNaN`. Both now have arms.

Two claims in the previous commit message are too narrow and are corrected
here: pruning is also given up, irrespective of `min` and `max` and in the
positive direction, for any set atom over such a column that holds a NaN or
reaches it through a tuple or a function chain.

`nan_counts` is now length-validated beside `null_counts` rather than bounded
per page, so both optional per-page lists of `ColumnIndex` fail closed alike.

The correctness arms pin `input_format_parquet_dictionary_filter_push_down`,
which the test runner randomizes, and a row-group-only pruning arm completes
the complement of the existing page-only one. `not_in_three` is dropped: two
and three set elements take the same path.

Co-Authored-By: Claude Opus 5 <[email protected]>
@groeneai groeneai added can be tested Allows running workflows for external contributors groeneai-origin-follow-up PR origin: groeneai's own out-of-scope finding during its PR work labels Aug 27, 2026
@groeneai

Copy link
Copy Markdown
Collaborator Author
Internal second-model review

Reviewed cold against the resulting code, then adversarially by a second model, over 2 rounds.
Verdicts below; findings I disagreed with carry the evidence.

Round 1 (4 adversarial findings, 5 from the cold read) - all fixed except two carriers.

Finding Verdict
❌ The tuple-set branch is correctness code, not conservatism, and had no test: with the float in a non-leading tuple position the set's column is ordered lexicographically, so a NaN need not be last and (i, val) IN ((1, nan), (2, 7.)) would prune a matching row AGREE, fixed, with a mutant that reddens the new arm and leaves every single-column set arm green
❌ No row-group-only pruning-liveness arm, so a change killing row-group pruning outright would still pass via page pruning AGREE, fixed
❌ Coverage of the bloom/dictionary pruning site depended on a randomized setting, so on some runs that site's mask was untested AGREE, fixed. Pinned, and the site proven by a site-specific mutant, which also showed a float-only predicate never reaches it at all
❌ LowCardinality(Nullable(Float64)) was uncovered, so a regression in the unwrap order would pass: swapped, only that combination resolves to Nullable(Float64) and loses the mask AGREE, fixed
⚠️ Iceberg manifest pruning still discards nan_value_counts and can drop a matching data file before this reader runs AGREE on the mechanism, DISAGREE that it belongs here: it enters through mayBeTrueInRange / checkInRange, signatures this PR does not touch, so covering it means threading the mask through both plus parsing a new Avro field. I have no Iceberg measurement and will not ship an unmeasured fix. Named in the description as a carrier that remains affected
⚠️ Hive StorageHive row-group pruning is unsound for Float32 statistics with hidden NaNs AGREE on the mechanism, DISAGREE on scope: it owns its own call sites, and arrow's vendored parquet::Statistics exposes no NaN count, so the only implementable remedy is a blanket "never trust float ranges" I could not measure either way. Exposure is confined to Float32, because HiveFile.cpp:342 and :346 both cast to parquet::FloatStatistics. Named in the description
💡 nan_counts's length was guarded inline while the adjacent null_counts length is validated with a throw; no mutant distinguished not_in_three from not_in_two; identifiers unbackticked in the commit message; one test comment claimed more than its query shows AGREE, all four corrected

Round 2 (4 adversarial findings, 2 from the cold read). Neither round-1 carrier came back.

Finding Verdict
❌ A masked range atom with a monotonic function chain still prunes a hidden NaN and suppresses the exception evaluating that row would raise: toInt64(val) = 0 over [5, 5, nan] throws with pushdown off and returns 0 with it on DISAGREE, on three grounds. Not wrong results: no monotonic chain accepted over a float can silently map NaN to a finite comparable value. Float to non-float conversion throws for any non-finite input generically (FunctionsConversion.h:1932-1945, pinned by 01581_to_int_inf_nan.sql); float to float and every arithmetic or analytic monotonic function propagate NaN, and NaN satisfies no comparison, so pruning is correct for a positive atom while a negated one is already saved by the mask, which survives the chain; toString over a float is explicitly not_monotonic (:4476), and greatest / least implement no monotonicity at all. Not introduced here: the mask writes only contains, and intersects is computed before it, so can_be_true for a chained atom is bit-identical to master, as the finding's own two numbers are. The remedy is a regression: forcing can_be_true there stops the prune, so the read evaluates the chain on the NaN row and the query throws where it used to return rows, for every Parquet float column with a NaN and no nan_count. That is a backward-incompatible change to pruning-versus-exception semantics, and MergeTree behaves the same way today, so changing Parquet alone would split the engines
❌ The function-chain half of the set guard is still untested DISAGREE, and now provably conservatism rather than merely unconstructed. Without !mapping[i].functions.empty() the code falls to the last-element test on ordered_set, which holds the set's own constants. If the set holds a NaN, that constant sorts last among non-NULLs and the test answers yes regardless of the chain, so the answer is identical either way. If it does not, the NaN row can only match when f(NaN) lands in the set, and f(NaN) is either NaN or the exception above. So deleting the guard can only change exception-versus-prune, never a returned row, and the arm requested would assert the behaviour change refuted in the row above
⚠️ Nothing proves the nan_count == 0 and nan_counts == 0 fast paths re-enable pruning AGREE on the fact, which the description already states, DISAGREE on the remedy. nan_count appears nowhere in arrow's vendored Parquet reader or writer outside parquet.thrift, and nowhere in ClickHouse's writer, so no writer reachable from a stateless test emits either field and the remedy is hand-written thrift metadata as a binary blob. Their only failure mode is lost pruning: ignoring them marks more columns, never fewer. Deleting them instead would forfeit the only route back to pruning a negated float predicate for future compliant writers, which parquet.thrift requires to write the field
💡 The comment above arm says a zero dictionary limit takes that pruning site out of the run; it only disables the exact dictionary lookup, while bloom pushdown still runs the shared site AGREE, not blocking. The pin is correct and is the setting's own default; only its stated reason overstates what it buys, which my own measurement of that site already showed. Left for the next touch of this file rather than another round
💡 The validation-gate comment carried a stale arm count and claimed no new error while describing one AGREE, corrected before posting

Noticed while reading, not addressed and not raised as work: if (key_range.left.isNaN()) forces
intersects = false, which is sound under TYPE_ORDER but not under IEEE_754_TOTAL_ORDER, where
parquet.thrift allows min to be -NaN beside finite values. Pre-existing, outside this change's
contract, and not reachable from ClickHouse's own writer.

@groeneai groeneai added the groeneai-origin-follow-up PR origin: groeneai's own out-of-scope finding during its PR work label Aug 27, 2026
@clickhouse-gh clickhouse-gh Bot closed this Aug 27, 2026
@clickhouse-gh clickhouse-gh Bot reopened this Aug 27, 2026
@clickhouse-gh

clickhouse-gh Bot commented Aug 27, 2026 •

Copy link
Copy Markdown
Contributor

Workflow [PR], commit [e25ac59]

Summary: ❌

job_name test_name status info comment
Stress test (arm_debug) FAIL
Logical error: Unexpected return type from A. Expected B. Got C. Action: (STID: 1611-45e7) FAIL cidb
Performance Comparison (arm_release, master_head, 4/6) FAIL Performance dashboard
and_compare_chain_derived #2 FAIL dashboard

AI Review

Summary

This PR fixes the Parquet-specific wrong-pruning cases caused by float statistics excluding NaN, propagates that information through the row-group, page-index, and bloom/dictionary hyperrectangle checks, and makes the writer emit the mandatory nan_count metadata so ClickHouse-written files keep the pruning benefit. I did not find a remaining contract break in the current diff, and the added functional and unit coverage matches the user-visible behavior the PR claims to change.

Final Verdict

Status: ✅ Approve

LLVM Coverage Report

Measured on commit e25ac59.

Metric Baseline Current Δ
Lines 88.10% 88.10% +0.00%
Functions 91.70% 91.70% +0.00%
Branches 79.30% 79.40% +0.10%

Changed lines: Changed C/C++ lines covered: 118/124 (95.16%) · Uncovered code

Full report · Diff report

@clickhouse-gh clickhouse-gh Bot added the pr-bugfix Pull request with bugfix, not backported by default label Aug 27, 2026
@groeneai

Copy link
Copy Markdown
Collaborator Author
Pre-PR validation gate (click to expand)
# Question Answer
a Deterministic repro? Yes. A 3-row Parquet file holding [5.0, 5.0, nan] and SELECT count() ... WHERE val != 5. returns 1 with input_format_parquet_filter_push_down = 0 and 0 with the default. 100% reproducible, no randomization, no concurrency.
b Root cause explained? Yes. Parquet float statistics exclude NaN, so the row group advertises min = max = 5. checkInHyperrectangle reads containsRange over those bounds as proof that every row satisfies the atom, and FUNCTION_NOT_IN_RANGE, FUNCTION_NOT_IN_SET and FUNCTION_NOT invert that claim into a wrong prune. Set atoms also break the other way, because set membership treats NaN as equal to NaN while = does not.
c Fix matches root cause? Yes. It declines full containment exactly where the bounds were computed from non-NaN values only, which is where the false claim originates. intersectsRange is untouched. Not a widened bound, not a tag, not a guard at the symptom site.
d Test intent preserved / new tests added? New test 05045_parquet_nan_statistics_pruning.sh: 21 wrong-results arms, 9 pins for behaviour already correct on master, 6 arms asserting pruning is preserved on measured rows_read. Every arm earns its place through a mutant that reddens it and a disjoint set of siblings; the one arm no mutant distinguished (not_in_three) was dropped. No existing test was weakened, removed or retagged.
e Both directions demonstrated? Yes. The 34-arm matrix goes from 19 red on pristine master to 0 red with the fix, pins and pruning arms unchanged in both. The shipped test differs in 21 arms on master and is byte-identical to its reference with the fix. 50/50 randomized runs pass.
f Fix is general across code paths? Yes. All four Parquet consumers of a statistics-derived hyperrectangle take the mask: row group, page ColumnIndex, the bloom/dictionary check that reuses the row group's hyperrectangle, and the GeoParquet covering.bbox conditions. All four consuming RPN kinds are covered, each pinned by its own arm and by a distinct mutant; the bloom/dictionary site's coverage was proven with a site-specific mutant plus an instrumented counter ladder, which also showed that site is reachable only when some column in the condition registers bloom hashes, i.e. never from a float-only predicate. IS NULL/IS NOT NULL is deliberately excluded because NaN is not NULL. Sibling carriers (MergeTree, Hive, Iceberg, native ORC) are enumerated with a reason each in the PR body; ORC was measured with an arming control rather than assumed.
g Fix generalizes across inputs (params/datatypes/wrappers)? Yes. Float64, Float32, Nullable(Float64), LowCardinality(Float64) and LowCardinality(Nullable(Float64)) read structures all diverge on master and are all fixed; removeLowCardinalityAndNullable strips both wrappers in the one order that works, which only the combined wrapper distinguishes (mutant M9 reddens those two arms and nothing else), and WhichDataType::isFloat() covers BFloat16 by construction. Single-column and tuple sets, sets of 1 and 2 elements, NULL in the set in both orders, transform_null_in both values, page-only and row-group-only pushdown are each pinned. Integers must NOT be masked, which arms Q3/Q4 and mutant M1.
h Backward compatible? (maintainer-approved exception only) Yes. No new setting, no default changed, no serialization or format change, so no SettingsChangesHistory.cpp row is needed. The new parameter is defaulted to nullptr, so every other caller is bit-for-bit unchanged. Two observable changes, both intended: strictly less pruning in the three cases the description enumerates, which only ever returns more correct rows; and a file whose ColumnIndex carries a nan_counts list of the wrong length is now rejected with INCORRECT_DATA instead of being read, which is how the adjacent null_counts list has always been treated and is malformed per parquet.thrift.
i Invariants and contracts preserved? Yes. The mask only ever relaxes can_be_false (and can_be_true for set atoms), which can add candidate row groups but can never introduce a wrong prune. ColumnIndex.nan_counts is length-validated beside null_counts and rejected with INCORRECT_DATA when mis-sized, so a misaligned list cannot be trusted per page. intersectsRange is never weakened, so no row group that could match is dropped. Only the dense overload is touched; the sparse one is reached solely from primary-key mark analysis, never from file statistics. Masks are sized to the block and every index is bounds-checked, so a shorter or absent mask degrades to "unmarked". No locks, lifetimes, or persisted state are involved.

Session id: cron:clickhouse-impl-self-slot-57:20260827-121800

@groeneai

Copy link
Copy Markdown
Collaborator Author

cc @al13n321 @tiandiwonder, could you review this? Parquet float min/max statistics exclude NaN, so containsRange over those bounds is not proof that every row satisfies an atom, and the negated range, negated set and FUNCTION_NOT inversions turn that into a wrong prune. The dense checkInHyperrectangle now takes an optional per-key-column mask, which the reader builds from Statistics.nan_count and ColumnIndex.nan_counts and passes at its four pruning sites.

@scanhex12 scanhex12 self-assigned this Aug 27, 2026
@clickhouse-gh

clickhouse-gh Bot commented Aug 27, 2026 •

Copy link
Copy Markdown
Contributor

Build profile diff (arm_release)

Commit e25ac593729617bd5eee3d0ef4881fd00479bdb6 was not compared: the CI logs cluster did not answer (every POST attempt failed with an exception).

See the job log for details.

…what it asserts

The test failed `Stateless tests (amd_asan_ubsan, flaky check)` with
`Test runs too long (> 180s). Make it faster.` on 13 of 16 runs, between 180.5 s
and 201.5 s, while every other flavour stayed green between 73 s and 100 s. The
cost is process spawn, not query work: the test issued 68 `clickhouse-client`
invocations, and one such invocation costs 0.511 s on an ASan+UBSan build, so
34.7 s of a 38.3 s solo run was spawn overhead.

Each output section now queues its statements and sends them as one batch. `arm`
and `arm_page_only` append two statements instead of running two clients and
`run_arms` rejoins their two output lines; `prune` appends a `FORMAT JSON`
statement and `run_prunes` labels the batch with one `jq` call, using
`transpose` so that a batch which lost a statement prints a null field rather
than silently relabelling the survivors. That is 10 client invocations instead
of 68.

The queries are unchanged, so the reference file is untouched. Measured over
`system.query_log`, both forms issue the same 67 read queries with the same
source, predicate and pushdown settings, so every arm keeps its own
pushdown-off oracle inside the same batch. On an ASan+UBSan master build that
does not contain this branch's fix, both forms print byte-identical output and
still redden the same 21 arms. Solo cost on that build with randomization on
falls from 90.9 s to 17.3 s, and the 50 run randomized check passes in 116 s
instead of 614 s.

`long` and `no-flaky-check` were both rejected: the first divides `--test-runs`
by ten so the flaky check would run about five times instead of fifty, and the
second skips the only mode that enforces the 180 s ceiling.

Also drops a comment clause claiming that a zero
`input_format_parquet_dictionary_filter_push_down` takes the dictionary pruning
site out of the run. It does not: `prepareBloomFilterCondition` treats a column
as eligible when it has either a bloom filter or a usable dictionary page, and
`input_format_parquet_bloom_filter_push_down` defaults to `true`.

CI report: https://s3.amazonaws.com/clickhouse-test-reports/json.html?PR=116725&sha=faa8e45817bcfded2bb135ec27b2574d1e15e558&name_0=PR&name_1=Stateless%20tests%20%28amd_asan_ubsan%2C%20flaky%20check%29
PR: ClickHouse#116725

Co-Authored-By: Claude Opus 5 <[email protected]>
@groeneai

Copy link
Copy Markdown
Collaborator Author

The flaky check red on the previous head was a cost failure, not a correctness one:
05045_parquet_nan_statistics_pruning crossed the 180 s ceiling on 13 of 16 runs (180.5 s to
201.5 s) while every other flavour ran in 73 s to 100 s. It was process spawn rather than query
work, at 68 clickhouse-client invocations x 0.511 s on an ASan+UBSan build. e4dd395 batches each
section into one client call, taking 68 invocations down to 10.

Nothing the test asserts changed and the reference file is untouched. Measured over
system.query_log, both forms issue the same 67 read queries with the same source, predicate and
pushdown settings, and on an ASan+UBSan master build that does not contain this fix both print
byte-identical output and still redden the same 21 arms. Cost on that build drops from 90.9 s to
17.3 s, and the 50 run randomized check passes in 116 s instead of 614 s.

@groeneai

Copy link
Copy Markdown
Collaborator Author

CI finish ledger - e4dd395

Every failure below has an owner: a fixing PR (mine or external), or a full-effort fix task whose fixing-PR link will be posted here when it opens. Only CH Inc sync is exempt.

Fast test, Style check and Config Workflow are all green, so nothing below is PR-caused.

Check / test Reason Owner / fixing PR
AST fuzzer (amd_debug, targeted) job-level ERROR, not a test failure: the server was wedged by host memory exhaustion (Code: 241 (total) memory limit exceeded ... current RSS: 55.32 GiB, maximum: 46.26 GiB on the liveness probe), the fuzzer was SIGTERMed at budget end (exit 143) and the runner was reclaimed mid-Run. No result published and 0 CIDB rows, which is why the check carries no test name. 16 job-level error rows on this pair of checks in the last 3 days against 3810 success #116782 (mine, open)
AST fuzzer (amd_debug, targeted, old_compatibility) same job-level failure mode #116782 (mine, open)
Stress test (arm_asan_ubsan, s3) / Not-ready Set is passed as the second argument for function 'globalIn' (STID 0250-4e52) pre-existing trunk bug, 115 distinct PRs and 6 true-master rows in 30 days #102308 (external, open)

One thing worth recording because it is not visible at this head: the earlier Stateless tests (amd_asan_ubsan, flaky check) red on 05045_parquet_nan_statistics_pruning ("Test runs too long (> 180s)") was real and was mine, on the previous head faa8e45817bc. At this head that test is OK 50/50 in all five flaky checks (amd_debug, amd_asan_ubsan, amd_tsan, amd_msan, amd_binary - 250 runs), and all five report success.

Session id: cron:our-pr-ci-monitor:20260828-010000

…n from ClickHouse#117202

The Integration tests (amd_asan_ubsan, db disk, old analyzer, 6/6) shard was red on
91257ca with a node death, Code: 210 Connection refused at OPTIMIZE TABLE test
FINAL in test_s3_plain_rewritable. That is the shutdown gdb fan-out pinning the nested
container cgroup at its cap, and ClickHouse#117202 (merged 2026-08-31 11:05:36Z) serializes the
attach. This run predates it, so the branch is refreshed to re-run with the fix.
@groeneai

Copy link
Copy Markdown
Collaborator Author

CI finish ledger - 91257ca708f3a3f84d90770436fd56eed0c027a6

CI is fully finished on this head: 172 praktika nodes as 151 OK, 18 SKIPPED by digest and
3 FAIL (the failing leaf, its check, and the PR roll-up), with 0 DROPPED. Config Workflow,
Style check and Finish Workflow are all success. The one failure has an owner and is not
caused by this PR.

Check / test Reason Owner / fixing PR
Integration tests (amd_asan_ubsan, db disk, old analyzer, 6/6) / test_s3_plain_rewritable/test.py::test[s3_plain_rewritable_with_metadata_cache-data_with_cache/] node death: Code: 210. DB::NetException: Connection refused (172.16.1.10:9000). (NETWORK_ERROR) at test_s3_plain_rewritable/test.py:138, node.query("OPTIMIZE TABLE test FINAL"). On a hung docker compose stop every node of a cluster crosses the same 60 second stacktrace deadline together, so several gdb processes attach at once and each reads the whole binary's debug info; together they pin the cgroup holding the nested containers at its 40.78 GiB cap and the kernel kills whatever is largest in it, which while gdb is still small is a ClickHouse server. The mid-flight test then sees Code: 210. #117202 (merged 2026-08-31), merged master @ e03515e086efd2ee057f0c93018724ed1dc50940

Not caused by this PR: the diff is src/Processors/Formats/Impl/Parquet/Reader.{cpp,h},
src/Storages/MergeTree/KeyCondition.{cpp,h} and one new stateless test, none of which touch S3
plain-rewritable metadata or server lifecycle. It is one failing test in a shard that otherwise
reported 1189 passing tests and 23 skips.

Why the branch was refreshed rather than the line simply linked: #117202 serializes that attach and
it is merged, but it was absent from the tree that ran. The symbol it introduces,
GDB_ATTACH_LOCK in tests/integration/integration-tests-entrypoint.sh, occurs 0 times at
91257ca7, 0 times at the pre-fix parent 0f26762e (negative control) and 6 times at the fix's own
merge commit 7fc3004e (positive control), so both controls are valid and the verdict is not an
artifact of looking in the wrong place. The run was created 2026-08-30 21:47:54Z, and a pull request
run's merge commit is fixed at trigger time, so even its third attempt, which started 11:13:52Z
after the fix landed at 11:05:36Z, still executed the pre-fix harness. A re-run therefore could not
pick it up; only a fresh tree can. Master is merged at e03515e0, whose first parent is
91257ca7 and second is 89d70c05, adding exactly one commit and leaving all six of this PR's own
blobs byte-identical.

Session id: cron:our-pr-ci-monitor:20260831-133000

@groeneai

Copy link
Copy Markdown
Collaborator Author

CI finish ledger - e03515e086efd2ee057f0c93018724ed1dc50940

CI is fully finished on this head. Every failure below has an owner: a fixing PR (mine or
external), or a full-effort fix task whose fixing-PR link will be posted here when it opens.
Only CH Inc sync is exempt.

Check / test Reason Owner / fixing PR
Stateless tests (amd_llvm_coverage, old analyzer, s3 storage, DBReplicated, parallel, 1/3) / 03707_autopr_unsupported_cases result differs from the reference on the old analyzer lane: supported_aggregation and supported_join read 0 0 instead of 1 1, because the optimization is built on the query plan. Failed 3 of 3 reruns #117364 (external, merged 2026-08-31), absent from this tree
AST fuzzer (amd_debug, targeted, old_compatibility) job ERROR having published nothing: the container passed the server's tracked ceiling (current RSS: 56.99 GiB, maximum: 46.24 GiB), every post-fuzz liveness probe returned Code: 241, and the job was then cancelled, so the CI database holds 0 rows for it #116782 (mine, open)
Integration tests (amd_asan_ubsan, db disk, old analyzer, 6/6) / Container memory budget exceeded (/docker) job-level container memory abort with no failing test. #117202 is present in this tree and is deliberately not linked as the owner: it cleared shards 2/6 and 5/6 outright, while 6/6 still fires on 13 of 13 post-fix master commits no fixing PR exists yet. A fix task holds the 6/6 residual; its investigation is complete and it is blocked on the integration-test capacity decision I put to the maintainers at #115963 (comment). Its fixing-PR link will be posted here when one opens

None of the three is PR-caused. This PR changes Parquet float statistics pushdown plus its own
05045 stateless test, and each failure fires on trees that do not contain that change.

On the 03707 row: the failing job ran from 19:23:27Z to 20:31:40Z and #117364 merged at
22:05:00Z, so this run predates the fix by more than an hour and compare reports the head
diverged from that merge commit. I am not merging master here purely to re-run CI, to keep the
review load down. The row clears when the branch next picks master up.

On the AST fuzzer row: the fuzzer itself finished its own time budget normally (exit code 143
from its timeout wrapper after a full pass), so the red is the server's memory state afterwards,
not a fuzzer finding. The twin AST fuzzer (amd_debug, targeted) arm and five sibling arms are all
success on this head, each with CI database rows. #116782 bounds that container with
--memory=physical_memory() - 8 GiB and its description records the same shape at
current RSS: 57.14 GiB against maximum: 46.18 GiB.

On the /docker row: investigation of the 6/6 residual is complete and is blocked on an owner
decision about integration-test capacity, which I put to the maintainers at
#115963 (comment). The memory breakdown
from the failing jobs' dmesg-follow.log shows 33 clickhouse processes holding 35.5 to 37.3 GiB,
88 to 93 percent of the 40.20 GiB anon against the 40.78 GiB /docker cap, with exactly one gdb
alive, so #117202 works as designed and there is no leak and no offending module. Every remaining
lever is either that capacity decision or gives up the shutdown stack dump on a genuine hang, so I
am not picking one unilaterally.

Fast test, Style check, Bugfix validation, Config Workflow and Finish Workflow are all
OK on this head. PR is the praktika aggregator: it reports the rows above and carries no
separate defect.

Session id: cron:our-pr-ci-monitor:20260831-223000

groeneai and others added 2 commits September 15, 2026 12:15
Resolves a conflict in KeyCondition.cpp. Both sides added helper functions at
the same spot before checkInHyperrectangle, so the resolution keeps both: this
branch's setMayMatchHiddenNaN/anyBoundsMayHideNaN and master's
rangeOfKeyColumnMayHoldNull/atomIsNullForNullArgument plus the two
KeyCondition::mayReadNullKeyValue overloads from ClickHouse#118706.

The two widenings are independent. mayReadNullKeyValue is a separate pass the
caller runs over the RPN and only relaxes can_be_false for a NULL key value;
the bounds_may_hide_nan mask is threaded into checkInHyperrectangle and relaxes
contains/can_be_false for bounds that excluded NaN. Neither reads the other's
state.

The atom bodies inside checkInHyperrectangle merged without conflict and were
re-checked against master's restructured FUNCTION_IN_RANGE handling: master now
resolves the range through key_range_ptr/key_range_storage for a monotonic
function chain, while key_column stays element.getKeyColumn(), so the mask is
still indexed by the source key column position it is built for.
When a Parquet float column's min/max statistics exclude a NaN, the row is
not described by the bounds, so it is not described by the image of those
bounds either. checkInHyperrectangle compares the atom's range against that
image whenever the element carries a monotonic function chain, and a chain
can map the hidden row to a value the image does not cover: sign maps the
bounds -5, -5 to -1, -1 while mapping NaN to 1, so the atom looks impossible
for the granule and both the row group and its pages are dropped although
the row matches.

The existing bounds_may_hide_nan handling only clears `contains`, which is
the whole answer while the atom is compared against the bounds themselves,
because no ordering comparison against a finite constant is true for a NaN.
Once a chain intervenes the atom can also be true outside the bounds, so
give up `intersects` as well. Keyed on both the mask and a non-empty chain,
so an integer column and a chain-free float atom keep pruning.

The mask handling becomes an independent `if` rather than a third `else if`:
the two arms above it describe the bounds we were given, this one describes
rows the bounds never described, and a chain can produce a NaN endpoint from
finite bounds (sign(val) * inf + inf maps -5, -5 to NaN, NaN while mapping
the hidden row to +inf), in which case the first arm fires and a chained arm
below it would never run. The promotion is a no-op for chain-free atoms,
because both NaN arms already clear `contains`.

Tests: four arms in 05045_parquet_nan_statistics_pruning covering the row
group layer, the page layer, Float32, and a chain whose image of the bounds
is NaN; plus a control that a chain over an integer column still prunes.
All four fail without this change.

Known open item, tracked in the pipeline task, not in this message's scope:
this widening also drops row group pruning for a Float64 Parquet column read
as Float32, which 04545_parquet_minmax_stats_type_mismatch pins, because a
narrowing float cast is itself a monotonic chain.

Co-Authored-By: Claude Opus 5 <[email protected]>
@groeneai

Copy link
Copy Markdown
Collaborator Author

CI finish ledger - 7b83309

Every failure below has an owner: a fixing PR (mine or external), or a full-effort fix task
whose fixing-PR link will be posted here when it opens. Only CH Inc sync is exempt.

CI is fully finished on this head: 176 checks, 155 pass, 18 skipped, 2 failed,
aggregator complete, and nothing left running except CH Inc sync. The last real check completed at
18:35:52Z, well past the 20 minute buffer the CI database needs.

Check / test Reason Owner / fixing PR
Build profile diff infra, nothing tested: has_pr_data raised RuntimeError: CI logs cluster query failed on the binary_sizes read and aborted the job before any comparison ran #120121 (mine, open), which turns a transient cluster read failure into a skipped comparison instead of a failed one
CH Inc sync still pending: the private mirror sync does not complete on a fork CH Inc sync (private, not actionable by me)

PR aggregate the rows above rather than adding a failure of their own.

Report: https://s3.amazonaws.com/clickhouse-test-reports/praktika.html?PR=116725&sha=7b83309a75abd6beeccb83c9b94f64f851ba1cf0&name_0=PR

Session id: cron:our-pr-ci-monitor:20260915-190256

Parquet computes float min and max from non-NaN values only, so the bounds
alone cannot tell a column that holds no NaN from one whose NaNs were skipped.
The format closes that gap with a count, and `parquet.thrift` makes writing it
mandatory: "The nan_count field must be set for floating point types, even if
it is zero." `StatisticsNumeric` accumulated only min and max, so every float
column ClickHouse wrote left the field unset, and every reader then had to
assume a NaN might be hiding behind the bounds.

The Parquet reader here is one such reader: it builds `bounds_may_hide_nan`
from `nan_count`, so it treated every float column in every file ClickHouse
produces as possibly NaN-holding, and the previous commit's widening therefore
cost those files their chain-based row group pruning. That is the open item the
previous commit noted, which `04545_parquet_minmax_stats_type_mismatch` pins.
With the count written, a NaN-free file says so and keeps pruning.

The count is emitted both for the column chunk statistics and for the page
index, which the reader consults separately, and it is set even when no min and
max are written, because an all-NaN column has no bounds but still has a count.
The dictionary fallback discards the encoded column and re-encodes it from row
zero; re-accumulating min and max over the same rows is idempotent, but a sum
is not, so both statistics accumulators are cleared there.

Tests: two arms in 05045_parquet_nan_statistics_pruning asserting that a
NaN-free float column keeps chain-based pruning, one at the row group layer and
one at the page layer. Both read rows without this change.

Co-Authored-By: Claude Opus 5 <[email protected]>
groeneai and others added 2 commits September 16, 2026 00:43
The reader distinguishes three states of a float column's nan_count statistic:
absent, zero, and non-zero. Absent means the writer reported nothing, so a NaN
may sit outside the bounds and chain-based pruning has to be given up; only an
explicit zero re-enables it. That is the state of every file an older ClickHouse
or another writer produced.

Until the previous commit it was also the state of every fixture in this test,
so the __isset conjunct that recognises it was covered for free. Writing
nan_count moved all of them into the zero and non-zero states, which left the
absent state with no oracle in the same commit that made it load-bearing.
Simplifying the check to `nan_count != 0`, which reads as harmless because
thrift default-initialises the field to zero, then restores the original wrong
result for all those files with a fully green suite.

The fixture is three rows written by a build whose writer does not emit the
field, embedded as base64 because no reachable writer produces it any more: the
same bounds as the negative NaN fixture, min = max = -5, no nan_count and no
ColumnIndex.nan_counts. Three arms cover the row group layer, the page layer
and a monotonic chain, all folded into batches the test already runs, so the
number of client invocations is unchanged.

Co-Authored-By: Claude Opus 5 <[email protected]>
The count that the previous commit writes has no SQL oracle: both reader sites
only compare it against zero, and `ParquetMetadataInputFormat` emits a fixed
five-field statistics tuple, so an inflated, zeroed or misaligned count changes
no query result. Arrow's `parquet::Statistics` and `parquet::ColumnIndex` do not
expose a NaN count either, so both cases deserialize the file's own bytes with
the writer's counterpart, `deserializeThriftStruct`: the footer's
`parq::FileMetaData`, then `parq::ColumnIndex` and `parq::OffsetIndex` from the
offsets it records.

`WriteNanCountStatistics` covers the four states a float column can be in: a
column with NaNs among finite values (exact count, bounds from the finite values
only), a NaN-free one (the count is written and is zero, which is what keeps
such files prunable), an all-NaN one (a count, no bounds, and therefore no
column index), and an integer column (no count at all). NaN counts differ per
page, so a misaligned `nan_counts` moves an entry rather than only the total.

`WriteNanCountAfterDictionaryFallback` is the case a SQL test cannot reach. It
writes a column whose first pages repeat a few values and whose later values are
all distinct, with a small `max_dictionary_size`, so the dictionary overflows
several pages in and the writer re-encodes the column from row zero. The
fallback is observed rather than assumed: the chunk's encodings must not contain
`RLE_DICTIONARY`. The same data with the default limit keeps its dictionary and
must give byte-identical counts.

Reverting both `clear()` calls at the restart makes the chunk count 46 instead
of 36 and the first page 5 instead of 1; reverting only the chunk accumulator
makes it 42 with every page still exact; reverting only the page accumulator
makes it 40. The control file is unaffected in all three.

Co-Authored-By: Claude Opus 5 <[email protected]>
@groeneai groeneai changed the title Do not trust Parquet float min/max statistics as full containment Fix Parquet pruning dropping rows that hold a NaN, and write the mandatory nan_count statistic Sep 16, 2026
@groeneai groeneai added the groeneai-origin-review-bot PR origin: review-bot finding on a groeneai PR label Sep 16, 2026
@groeneai

Copy link
Copy Markdown
Collaborator Author
Internal second-model review

Reviewed cold against the resulting code, then adversarially by a second model. Rounds 1 and 2 are in
an earlier comment; the two commits added since are covered by rounds 3 to 5 below. Verdicts as
before, and findings I disagreed with carry the evidence.

Round 3 (2 adversarial findings, 4 from the cold read) - both majors fixed.

Finding Verdict
❌ Writing nan_count moved every fixture out of the absent-statistic state, so the reader's "field absent means a NaN may be present" branch lost its only oracle in the same commit that made it load-bearing: simplifying it to nan_count != 0 would restore the original wrong result for every file written without the field, with a green suite AGREE, fixed. A fixture written by a build without the writer commit is embedded in the test and materialised at run time (chunk nan_count verified unset, not zero, before embedding), with three arms (negated range, chain, page layer) and a two-stage mutation that reddens exactly those three and nothing else. The mutation had to be split: the first form was the De Morgan expansion of the line it replaced, so it left the page arm green
❌ Nothing asserts the exact nan_count the writer serializes, so a hard-coded, zeroed or restart-inflated count would pass AGREE. See round 4: it has no SQL oracle at all, so it is pinned in the writer's gtest
⚠️ The dictionary-fallback restart still leaves size_statistics.unencoded_byte_array_data_bytes and both level histograms accumulated over the discarded rows AGREE on the mechanism, and it is the same non-idempotence the new comment names three lines away. Not fixed here: it affects ByteArray and repeated columns rather than floats, and its consequence is an inflated size hint rather than a wrong result. Happy to do it separately
💡 The accepted-cost note read as though only a non-compliant writer were affected, when the mask is cleared solely by an explicit nan_count == 0 AGREE, description corrected to say so plainly
💡 Iceberg data-file pruning was named as an affected carrier without an offer, though the manifest-list summaries already guard on contains_nan AGREE, description now names that precedent and offers the follow-up
💡 The reason the two accumulator resets ship without an in-tree oracle was not written anywhere a reviewer would look AGREE, and superseded in round 5: the gtest below pins both resets, so there is no missing oracle left to explain

Round 4 (1 adversarial finding, raised in two consecutive rounds, plus 1 from the cold read).

Finding Verdict
❌ Nothing asserts the exact serialized count, and no committed fixture forces the dictionary fallback, so a restart-inflated count changes no assertion (second consecutive round) AGREE. There is no SQL channel for it: both reader sites compare the count against zero only, and ParquetMetadataInputFormat emits a fixed five-field statistics tuple. Extending that documented format (18 references) inside a bug-fix PR was declined, so it is pinned where such behaviour belongs, in the writer's existing gtest, by decoding the file's own thrift with the writer's counterpart deserializeThriftStruct: exact Statistics.nan_count and exact per-page ColumnIndex.nan_counts, including a case whose dictionary-fallback restart is observed (encodings without RLE_DICTIONARY) against a same-data control that keeps its dictionary
💡 An earlier internal fix plan of mine asked for a NOT (val < c) arm over that fixture; it measures a wrong result rather than the expected count Withdrawn, my error and not the implementation's. Every NOT (<inequality>) folds through the comparison-inverse table, so no .reference line was written for it. See the first row of round 5

Round 5 (1 adversarial finding, 5 from the cold read). The two majors above were not re-raised.

Finding Verdict
❌ Chain-free negated inequalities still prune a row group holding a hidden NaN: NOT (val < 6.) is folded into val >= 6., which NaN does not satisfy, so bounds [5, 5] discard the matching row at both layers DISAGREE that it belongs here, on three measured grounds, and the mechanism itself I confirm rather than contest. Not introduced or worsened here: identical on pristine master (NOT (val < 1e12) is on=0 off=300 on this head and on a build with the writer commit reverted; the MergeTree primary-key form returns 0 against a countIf of 1 with no Parquet involved). The fix is an open PR of mine at the exact site: #107074 declines the inverse_relations fold for float operands (less, greater, lessOrEquals, greaterOrEquals), so a second change to those same lines of shared pruning code would conflict with it. The requested regression arms would enshrine a wrong result: every chain-free negated-inequality arm measures on=0 off=1 today, which must not become expected output in a .reference file. One correction to the description, which states this residual only for the chained composition (NOT (toFloat32(x) > 11500.)): the chain-free form NOT (val < 6.) is the same fold and is equally not covered here. What this PR does fix in that family is the shape that folds soundly, val != 5 and NOT (val = 5.), where the negation survives into the RPN as a negated range atom and the mask reaches it
💡 Five test-side nits from the cold read: readFooter's 4-byte read precedes any 8-byte-suffix precondition (both call sites assert it first); the page and offset index offsets get no bounds guard although readFooter got one; the expected per-page counts restate the fixture's own list; the restart's location in the column is not asserted, only that it happened; and Float32 zero-emission is measured with a footer decoder but has no in-tree discriminator Noted, none blocking. The last two bound the mutation evidence rather than the oracle: the asserted counts stay exact wherever the restart lands, and the emission path is a single if constexpr on the physical type shared by both float widths

Verified independently while reading, not taken from the implementation's report: std::min(a, NaN) and
std::max(a, NaN) both return a, so excluding NaN in StatisticsNumeric::add preserves the bounds
rather than merely being compatible with them; nan_count is set before the min > max empty return,
which is what makes the all-NaN state (a count, no bounds, and therefore no column index at all)
representable; __isset.nan_count is uniform across every page of a chunk by construction, so
nan_counts.size() == num_pages; and in checkInHyperrectangle the pair is negated afterwards for
FUNCTION_NOT_IN_RANGE, so the new intersects = true widens only positive range atoms, which is why
an arm for a negated chained atom would have been vacuous rather than missing.

@groeneai

Copy link
Copy Markdown
Collaborator Author

CI finish ledger - e81570c

Every failure below has an owner: a fixing PR (mine or external), or a full-effort fix task
whose fixing-PR link will be posted here when it opens. Only CH Inc sync is exempt.

Check / test Reason Owner / fixing PR
Integration tests (amd_asan_ubsan, db disk, 7/8) / job-level, 0 tests ran infra: pre-pull of minio/mc:RELEASE.2025-04-16T18-13-26Z failed on all 3 attempts with pull access denied ... repository does not exist, because that Docker Hub repository was deleted upstream #119999 (mine, open)
Finish Workflow / Post Hooks (new_tests_check.py) cascade of the row above: both Bugfix validation (functional tests, ...) jobs were DROPPED with Dropped due to previous failure [Integration tests (amd_asan_ubsan, db disk, 7/8)], so no per-arch validation job could report OK #119999 (mine, open)

Neither failure is specific to this pull request: the same denied minio/mc pull aborted integration
batches on 26 other pull requests and on 6 master commits between 02:00 and 05:20 UTC today. #119999
repoints the three MinIO pins at mirrored clickhouse/minio-* images, which is what removes the
dependency on the deleted repository.

Session id: cron:our-pr-ci-monitor:20260916-053048

@tiandiwonder

Copy link
Copy Markdown
Contributor

@groeneai please check CI and resolve the conflict.

Resolves one conflict in src/Processors/Formats/Impl/Parquet/Write.cpp.
Master's ClickHouse#120027 (061fa0b) independently added the same
page_statistics.clear() / total_statistics.clear() at the dictionary
fallback site, plus reset_size_statistics(); its side is a strict superset
of the branch's hunk, so master's version is taken verbatim and this
branch no longer carries that hunk.

KeyCondition.cpp/h and Reader.cpp auto-merged. Verified by hand that the
bounds_may_hide_nan check still sits after master's NaN-bound handling in
the restructured FUNCTION_IN_RANGE arm, where key_column is still
element.getKeyColumn(), so the mask stays indexed by the source key
column position it is built for.
@groeneai

Copy link
Copy Markdown
Collaborator Author

Both done.

Conflict. Merged master. One conflict, in src/Processors/Formats/Impl/Parquet/Write.cpp: #120027 landed the same page_statistics.clear() / total_statistics.clear() at the dictionary fallback site plus reset_size_statistics(), so master's side is a superset of mine. I took master's version verbatim and dropped my hunk. KeyCondition.cpp/h auto-merged; I checked by hand that the bounds_may_hide_nan test still sits after master's NaN-bound handling in the restructured FUNCTION_IN_RANGE arm, where key_column is still element.getKeyColumn(), so the mask stays indexed by the key column position it is built for. New head 61d3c7b, mergeable again, delta against master unchanged at 8 files.

Verified on the merged tree before pushing: 05045_parquet_nan_statistics_pruning 30/30 with randomized settings, and all 7 Parquet.* unit tests, including WriteNanCountAfterDictionaryFallback, which is the oracle for exactly that conflict.

CI. Running now on 61d3c7b; I will post the finish ledger here when it completes. On the previous head the only two failures were the deleted minio/mc Docker Hub image, owned by #119999, which merged on 2026-09-16 and this master merge picks up, so I expect them gone.

One thing worth flagging: NOT (val < 6) over [5.0, 5.0, nan] still returns 0 with pushdown on. I re-measured it today against pristine master, where it behaves identically, so it is pre-existing and not affected by this PR: inversion push-down folds it to val >= 6. #107074 declines that fold for float operands.

@groeneai

Copy link
Copy Markdown
Collaborator Author

CI finish ledger - 61d3c7b

Every failure below has an owner: a fixing PR (mine or external), or a full-effort fix task
whose fixing-PR link will be posted here when it opens. Only CH Inc sync is exempt.

Check / test Reason Owner / fixing PR
Integration tests (amd_asan_ubsan, db disk, 1/8) / test_max_bytes_ratio_before_external_distinct[server] the query hits the harness hard 600 s per-query cap and the client raises TimeoutExpired; 19 unrelated PRs carry it over 30 days and no true-master run does #121096 (mine, merged 17:42Z today), which sizes that test to fit the client timeout. Rule 3c: this run started 13:12Z, so the fix is absent from the tree that ran, and a master merge to pick it up is queued
Build profile diff infra: the job raised RuntimeError: CI logs cluster query failed at build_profile_diff_job.py:234, so nothing was compiled or compared #121048 (external, merged 16:14Z today). Rule 3c: the run started 14:44Z, so the fix is absent from the tree that ran, and the same master merge picks it up
CH Inc sync private mirror sync CH Inc sync (private, not actionable by me)
PR, Mergeable Check praktika and merge rollups of the integration row above, not independent failures #121096 (mine, merged)

This is the finish ledger promised when the conflict resolution was pushed to 61d3c7b, and the
prediction made there holds: the previous head's two minio/mc Docker Hub reds are gone, because
#119999 merged and git merge-base --is-ancestor 57e97ff506a5 HEAD is true on this head. The NaN
pushdown tests this PR adds are green and CIDB shows no other test-level failure on this head, so
the one gating red is the timeout above, whose fix landed on master 20 minutes ago.

Session id: cron:our-pr-ci-monitor:20260921-173143

@tiandiwonder
tiandiwonder removed the request for review from al13n321 September 22, 2026 00:36
@groeneai

Copy link
Copy Markdown
Collaborator Author

CI finish ledger - 2f32787

Every failure below has an owner: a fixing PR (mine or external), or a full-effort fix task
whose fixing-PR link will be posted here when it opens. Only CH Inc sync is exempt.

Check / test Reason Owner / fixing PR
Integration tests (amd_asan_ubsan, db disk, 1/8) / test_max_bytes_ratio_before_external_distinct[server] memory limit exceeded: Code: 241 at test.py:134, current RSS: 3.90 GiB, maximum: 4.00 GiB, while executing BufferingFromFileSource. Trunk-wide rather than specific to this change: 29 distinct pull requests plus 5 true-master runs carry this signature over 30 days, and this branch touches only the Parquet reader/writer, KeyCondition and one stateless test #121454 (external, open)

Mergeable Check and the PR rollup name that integration shard as the gating failure, so they
carry the same owner. CH Inc sync reports success on this head.

Session id: cron:our-pr-ci-monitor:20260922-020058

@clickhouse-gh

clickhouse-gh Bot commented Sep 28, 2026

Copy link
Copy Markdown
Contributor

Dear @scanhex12, you haven't been active on this PR for 30 days. You will be unassigned. Will you continue working on it? If so, please feel free to reassign yourself.

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

can be tested Allows running workflows for external contributors comp-parquet-reader-v3 Issues related to the native Parquet reader. groeneai-origin-follow-up PR origin: groeneai's own out-of-scope finding during its PR work groeneai-origin-review-bot PR origin: review-bot finding on a groeneai PR pr-bugfix Pull request with bugfix, not backported by default

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants