Repository navigation
Conversation
Contributor
|
Workflow [PR], commit [a66d6c4] Summary: ❌
|
Avogar
approved these changes
Dec 30, 2025
al13n321
enabled auto-merge
January 1, 2026 19:42
alexey-milovidov
added a commit
that referenced
this pull request
Jul 3, 2026
The `Style check` was the only red job (it drops all downstream builds/tests), failing on three issues in the new test: - a test-numbering gap (`05020` was far ahead of the highest existing number), - a global `SYSTEM FLUSH LOGS` (must name the log: `SYSTEM FLUSH LOGS query_log`), - `SYSTEM DROP QUERY CONDITION CACHE` without a `no-parallel` tag. While verifying the test end-to-end (CI never built it, since it stopped at the style stage) two functional problems surfaced: - The original test asserted on `read_rows`, but that cannot observe the cache: Parquet bloom-filter pruning already skips the absent (odd) value on the very first query, so the cached and uncached reads are identical. The reliable signal is the `QueryConditionCacheMisses` / `QueryConditionCacheHits` profile events, as used by the existing object-storage test (`test_storage_iceberg_with_spark/test_query_condition_cache.py`). - The `file()` table function has a Nil table UUID, and `QueryConditionCache` disables itself for storages without a UUID (issues #92863 / #92864), so the cache is inert for it - the same limitation the `s3()` table function has. The cache is populated and reused for file-backed tables that do have a UUID, i.e. the `File` table engine. Rewrite the test to use a `File` engine table and assert on the cache miss/hit profile events (first query = miss, second = hit), plus a correctness check that a matching predicate is not over-skipped. The table gets a unique UUID per test run, so the cache keys are isolated and no global cache reset is needed, keeping the test parallel-safe.
1 task
zeekay
pushed a commit
to hanzoai/datastore
that referenced
this pull request
Sep 11, 2026
The `Style check` was the only red job (it drops all downstream builds/tests), failing on three issues in the new test: - a test-numbering gap (`05020` was far ahead of the highest existing number), - a global `SYSTEM FLUSH LOGS` (must name the log: `SYSTEM FLUSH LOGS query_log`), - `SYSTEM DROP QUERY CONDITION CACHE` without a `no-parallel` tag. While verifying the test end-to-end (CI never built it, since it stopped at the style stage) two functional problems surfaced: - The original test asserted on `read_rows`, but that cannot observe the cache: Parquet bloom-filter pruning already skips the absent (odd) value on the very first query, so the cached and uncached reads are identical. The reliable signal is the `QueryConditionCacheMisses` / `QueryConditionCacheHits` profile events, as used by the existing object-storage test (`test_storage_iceberg_with_spark/test_query_condition_cache.py`). - The `file()` table function has a Nil table UUID, and `QueryConditionCache` disables itself for storages without a UUID (issues ClickHouse#92863 / ClickHouse#92864), so the cache is inert for it - the same limitation the `s3()` table function has. The cache is populated and reused for file-backed tables that do have a UUID, i.e. the `File` table engine. Rewrite the test to use a `File` engine table and assert on the cache miss/hit profile events (first query = miss, second = hit), plus a correctness check that a matching predicate is not over-skipped. The table gets a unique UUID per test run, so the cache keys are isolated and no global cache reset is needed, keeping the test parallel-safe.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
Parquet reader now allows reading Tuple or Map columns as JSON:
select x from file(f.parquet, auto, 'x JSON')works even if the type of columnxinf.parquetis tuple or map.Closes #92383
Refactors the reader to (1) do castColumn in formOutputColumn instead of decodePrimitiveColumn, so that non-primitive columns can be cast, (2) call formOutputColumn from decodePrimitiveColumn when all primitive columns of that output column are decoded, so that formOutputColumn runs in parallel for different columns (previously these calls happened from one thread when delivering final block).