Antalya 26.1 Backport of #95476, #98360 - enable prewhere for iceberg (and fixes)#1581
Open
mkmkme wants to merge 4 commits intoantalya-26.1from
Open
Antalya 26.1 Backport of #95476, #98360 - enable prewhere for iceberg (and fixes)#1581mkmkme wants to merge 4 commits intoantalya-26.1from
mkmkme wants to merge 4 commits intoantalya-26.1from
Conversation
…r_iceberg enable prewhere for iceberg
…ere-external-columns Fix exception in Parquet PREWHERE when column is not in file
Collaborator
Author
|
AI audit note: This review comment was generated by AI (claude-4.6-sonnet-medium-thinking). Audit update for PR #1581 (Antalya 26.1 backport of ClickHouse#95476, ClickHouse#98360 – enable PREWHERE for Iceberg): Confirmed defects: Medium: PREWHERE crashes on Iceberg tables that have undergone schema evolution (column renames)
Code evidence — /// TODO: Known problems with datalake prewhere:
/// * If the iceberg table went through schema evolution, columns read from file
/// may need to be renamed or typecast before applying prewhere. [...]
/// We should probably change this and delete that additional code?Code evidence — return std::make_shared<FormatFilterInfo>(
format_filter_info->filter_actions_dag,
format_filter_info->context.lock(),
mapper,
format_filter_info->row_level_filter,
format_filter_info->prewhere_info // ← references CURRENT column names,
); // but initial_header has OLD names
Coverage summary:
|
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 to CHANGELOG.md):
Enable PREWHERE optimization for Iceberg tables. (ClickHouse#95476 by @scanhex12)
Fix LOGICAL_ERROR exception in the Parquet V3 reader when PREWHERE references a column not present in the Parquet file (ClickHouse#98360 by @alexey-milovidov)
Documentation entry for user-facing changes
...
CI/CD Options
Exclude tests:
Regression jobs to run: