Skip to content

feat: recognize SparkCopyOnWriteScan as a native Iceberg scan - #5320

Closed
unikdahal wants to merge 1 commit into
apache:mainfrom
unikdahal:feature/scan-allowlist
Closed

unikdahal wants to merge 1 commit into
apache:mainfrom
unikdahal:feature/scan-allowlist

Conversation

@unikdahal

Copy link
Copy Markdown
Contributor

Which issue does this PR close?

Closes #5319.

Rationale for this change

Iceberg's MERGE/UPDATE/DELETE target tables scan through SparkCopyOnWriteScan, which
extends the same SparkPartitioningAwareScan base as the already-supported SparkBatchQueryScan
but wasn't in Comet's recognized scan set, so it always fell back to Spark.

What changes are included in this PR?

Add SparkCopyOnWriteScan to IcebergReflection.ICEBERG_SCAN_CLASSES.

How are these changes tested?

verified manually against a real Iceberg REST catalog.

@unikdahal

Copy link
Copy Markdown
Contributor Author

CI failures traced to two issues:

  1. outputPartitioning could force partition planning before the COW dynamic-file-filter subquery resolved ( will be fixing it).

  2. Nested-struct schema evolution hits a positional (not field-id) cast in iceberg-rust's RecordBatchTransformer, which can misalign/crash on evolved COW tables. The fix exists upstream as fix(arrow): reconcile evolved nested structs by field id, not position iceberg-rust#2647 but isn't merged yet.

This PR depends on apache/iceberg-rust#2647 merging. Hence changing the PR status as draft for now

@unikdahal
unikdahal marked this pull request as draft August 12, 2026 21:09
@andygrove andygrove added enhancement New feature or request area:Iceberg area:scan Parquet scan / data reading labels Sep 6, 2026
@github-actions

github-actions Bot commented Nov 6, 2026

Copy link
Copy Markdown

Thank you for your contribution. Unfortunately, this pull request is stale because it has been open 60 days with no activity. Please remove the stale label or comment or this will be closed in 7 days.

@github-actions github-actions Bot added the Stale label Nov 6, 2026
@github-actions github-actions Bot closed this Nov 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:Iceberg area:scan Parquet scan / data reading enhancement New feature or request Stale

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support Iceberg SparkCopyOnWriteScan in IcebergReflection.ICEBERG_SCAN_CLASSES

2 participants