Repository navigation
Add 1 tests for coverage gaps in PR #115848 - #124521
Conversation
Pre-PR validation: 6/6 ✅a) Deterministic repro? ✅ b) Root cause explained? ✅ c) Fix matches root cause? ✅ d) Test intent preserved? / New tests added? ✅ e) Both directions demonstrated? ✅ f) Fix is general, not a narrow patch? ✅ |
|
Workflow [PR], commit [b837745] Summary: ✅ AI ReviewSummaryAdds regression coverage for Missing context / blind spots
Final VerdictStatus: ✅ Approve. No outstanding review changes required. |
Result equivalence stays green if `position(...) <op> const` stops being extracted. Check `StringValueFilterValuesChecked > 0` in `query_log` for a `position(s, 'needle') != 0` read pinned to `enable_parallel_replicas = 0`. Requested by @clickhouse-gh[bot] in ClickHouse#124521 (comment)
On master, StringValueFilter disables itself after 8192 checks when it skips fewer than 16 bytes per checked value; the fixture skipped 14.3-15.4. Requested by @clickhouse-gh[bot] in ClickHouse#124521 (comment)
…row mask With the default block size every 10000-row group is one block, the page is not initialized yet, and `decodePrimitiveColumn` reads each passing row range without a mask. With `input_format_parquet_max_block_size = 1000`, the later blocks of a row group pass the `id % 3 = 0` mask into `DeltaLengthByteArrayDecoder::decode` together with the value filter. Requested by @clickhouse-gh[bot] in ClickHouse#124521 (comment)
Test-only PR. Review: are the gaps real, is the test right.
Adds test coverage for 1 untested code path, found during automated review of PR #115848.
That PR: (1) Adds
apply_string_filters_during_scan(off by default, randomized in CI at 50%).extractStringValueFiltersturns PREWHERE conjuncts (LIKE,startsWith,endsWith,position,position <op> const,= 'non-empty') into aStringValueFilter.SerializationString(MergeTree) and the …1. Parquet
DELTA_LENGTH_BYTE_ARRAYscan-filter decode path never executedsrc/Processors/Formats/Impl/Parquet/Decoding.cpp:885,src/Processors/Formats/Impl/Parquet/Decoding.cpp:902Risk: The PR changed the entry to
if (!filter && !active_value_filter), so thetrivial_converterbranch is now reached withfilter == nullptr. Inside it,filter[...]is guarded by!filter ||(Decoding.cpp:902). ClickHouse's writer only emitsPLAIN/dictionary pages (Parquet/Write.h:45), …Unique vs PR tests: The PR's Parquet tests cover the
PLAIN(PlainStringDecoder) and dictionary (bit-packed and RLE runs) paths, because ClickHouse cannot writeDELTA_LENGTH_BYTE_ARRAY. This test is the only one that sends aPREWHEREstring filter, with and without a row mask, through …cc @alexey-milovidov (author of #115848) — could you take a look, and add the
can be testedlabel if this looks good?Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
Not applicable — test-only change.
Documentation entry for user-facing changes
Workflow [PR]
Sync PR [sync-upstream/pr/124521]
Version info
26.11.1.638-master(included in26.11and later)