Conversation
Prune initially planned batch splits using runtime partition predicates for append, upsert, incremental, and lake-union Spark reads. Reuse original offsets, snapshots, partition metadata, and reader factories. Fixes apache#3344 Co-Authored-By: Codex <noreply@openai.com> AI-Model: gpt-6 AI-Contributed/Feature: 132/132 AI-Contributed/UT: 530/530
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.
Purpose
Linked issue: close #3344
Enable dynamic partition pruning for Spark batch reads through
SupportsRuntimeV2Filtering.Brief change log
Tests
FlussRuntimeFilteringTest: partition attributes, special column names, projected schemas, empty and null predicates, multiple partition keys, static pruning, repeated filtering, batch lifecycle, split boundaries, and lake partition metadata.SparkRuntimeFilteringTest: append/upsert joins with AQE enabled and disabled, incremental reads, DPP result equivalence and split pruning, and data written after initial planning.SparkLakeRuntimeFilteringTest: append/upsert joins with dynamic partition pruning for lake-only and combined lake/log reads.API and Format
No public Fluss API or storage format changes.
Documentation
Adds automatic runtime partition pruning for eligible Spark batch reads. No user documentation changes.