Skip to content

Feature: Incremental Append Scan#3364

Draft
smaheshwar-pltr wants to merge 1 commit into
apache:mainfrom
smaheshwar-pltr:sm/incremental-append-scan-v2
Draft

Feature: Incremental Append Scan#3364
smaheshwar-pltr wants to merge 1 commit into
apache:mainfrom
smaheshwar-pltr:sm/incremental-append-scan-v2

Conversation

@smaheshwar-pltr
Copy link
Copy Markdown
Contributor

@smaheshwar-pltr smaheshwar-pltr commented May 15, 2026

Revival of #2634 (comment), please see those PRs for inline review comments + discussions that I've not ported to here just yet!

Rationale for this change

Are these changes tested?

Are there any user-facing changes?

@smaheshwar-pltr smaheshwar-pltr force-pushed the sm/incremental-append-scan-v2 branch from f86284f to 1fd9274 Compare May 15, 2026 23:32
class BaseScan(ABC):
"""A base class for all table scans."""

class TableScan(ABC):
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This isn't a rename - TableScan is just moved below the new BaseScan class

and (manifest.sequence_number or INITIAL_SEQUENCE_NUMBER) >= min_sequence_number
)
@property
def partition_filters(self) -> KeyDefaultDict[int, BooleanExpression]:
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a public property, so keeping it for back-compat



class DataScan(TableScan):
def _build_partition_projection(self, spec_id: int) -> BooleanExpression:
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is now moved into ManifestGroupPlanner so it can be shared with DataScan and IncrementalAppendScan.

def plan_files(
self,
manifests: Iterable[ManifestFile],
manifest_entry_filter: Callable[[ManifestEntry], bool] = lambda _: True,
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Introducing this for incremental append scan logic

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant