Repository navigation
apply predicate to iceberg_history table - #108492
Merged
Merged
Conversation
Filter the `database` and `table` columns through the query predicate before opening any tables, so that querying `system.iceberg_history` with a `WHERE database = ...` / `table = ...` condition no longer iterates every table in every database. Databases are filtered first, before listing their tables, so a predicate on `database` avoids opening connections to remote databases (PostgreSQL/MySQL/...) whose tables are irrelevant to the query. Adds the `getFilterSampleBlock` override and threads the `ActionsDAG::Node * predicate` into `fillData`, applying it via `VirtualColumnUtils::filterBlockWithPredicate`. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
Contributor
|
Workflow [PR], commit [7973ab5] Summary: ✅
AI ReviewSummaryThis PR pushes Findings
Tests
Final VerdictStatus: Minimum required action: make the |
Diskein
marked this pull request as ready for review
June 25, 2026 16:00
Contributor
LLVM Coverage Report
Changed lines: Changed C/C++ lines covered by tests: 60/69 (86.96%) | Lost baseline coverage: none · Uncovered code |
asya-ch
approved these changes
Jun 26, 2026
Diskein
enabled auto-merge
June 26, 2026 12:45
zeekay
pushed a commit
to hanzoai/datastore
that referenced
this pull request
Sep 11, 2026
…ry-push-down apply predicate to iceberg_history table
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.
Filter the
databaseandtablecolumns through the query predicatebefore opening any tables, so that querying
system.iceberg_historywith a
WHERE database = .../table = ...condition no longeriterates every table in every database.
Databases are filtered first, before listing their tables, so a
predicate on
databaseavoids opening connections to remote databases(PostgreSQL/MySQL/...) whose tables are irrelevant to the query.
Adds the
getFilterSampleBlockoverride and threads theActionsDAG::Node * predicateintofillData, applying it viaVirtualColumnUtils::filterBlockWithPredicate.Co-Authored-By: Claude Opus 4.8 (1M context) [email protected]
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
If you provide WHERE with
tableanddatabasefilters thensystem.iceberg_historywill list only matched databases. It can save some time if you have many non-related remote databases on the server.Version info
26.7.1.105