Repository navigation
Conversation
|
Workflow [PR], commit [e3ee4d7] Summary: ✅
AI ReviewSummaryThis PR fixes file-backed reads where row policies or Findings
Final VerdictChanges are not ready to merge yet: the object-storage fallback still regresses TopN pruning when the new deferred-default filter path is taken. LLVM Coverage ReportMeasured on commit e3ee4d7.
Changed lines: Changed C/C++ lines covered: 248/383 (64.75%) · Uncovered code |
c5b3862 to
64943da
Compare
Build profile diff (arm_release)Comparing ✅ No significant changes. Binary sizes
The official master build is compiled with Object file sizes8 object files changed (+145.32 KiB total), 0 added.
716 more object files are built by the master warmup baseline only (it builds every object-file target, a pull request build only Compile time of recompiled translation units146 translation units recompiled, 1341 s compile time in total, 146 of them have a recent master baseline. |
…column is present.
…mn filters see computed values.
| && filter_requires_missing_defaulted_column(format_filter_info->row_level_filter->actions.getRequiredColumns())) | ||
| || (format_filter_info->prewhere_info | ||
| && filter_requires_missing_defaulted_column(format_filter_info->prewhere_info->prewhere_actions.getRequiredColumns()))) | ||
| format_supports_prewhere = false; |
There was a problem hiding this comment.
This new format_supports_prewhere = false path now routes object-storage reads through the cloned FormatFilterInfo objects below, but unlike StorageFile / StorageURL those clones never copy top_k_filter. A Parquet-backed S3 / Iceberg read with ORDER BY ... LIMIT and a deferred row policy / PREWHERE on a missing DEFAULT column will therefore stop doing TopN dynamic filtering / row-group pruning even though the sort key is still read from the file. Please carry top_k_filter across the reconstructed FormatFilterInfos here as well.
Closes: #114616
When a file-backed table (
File, and the same path for object storage) has aDEFAULTcolumn that is not present in the data file, a row policy orPREWHEREcould prune the inputs of that default expression beforeAddingDefaultsTransformran. That led toUNKNOWN_IDENTIFIERon current master, and on 26.7 to silently wrong row-policy results (type defaults instead of real values).This keeps columns required by
DEFAULTexpressions in the read set through prewhere pruning, and applies filters that reference defaulted columns after defaults are computed.Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
Fix queries over file-backed tables where a row policy or
PREWHEREinteracted withDEFAULTcolumns missing from the data file: they no longer fail withUNKNOWN_IDENTIFIER, and row policies are evaluated on real default values instead of type defaults.Workflow [PR]
Sync PR [sync-upstream/pr/114667]