Repository navigation
Conversation
6 tasks
comphead
force-pushed
the
iceberg-compaction
branch
from
November 30, 2026 20:46
3211fc4 to
715611b
Compare
A native Iceberg write over a native Iceberg scan ran two native plans per task. The scan's plan exported its batches to the JVM over Arrow FFI, and the write's plan imported them again through an FFI Scan and checked their strings as UTF-8 a second time. A plain write over the scan, directly or through projections that only select its columns (Spark adds one for INSERT INTO ... SELECT *), now takes the scan's native plan as its input. CometIcebergWriteExec runs it with CometIcebergScanWriteRDD, which injects each partition's file tasks the way CometExecRDD does for a scan inside any other native plan, and reports the scan's metrics through the write's metric tree. The scan's plan used to decode ahead on a Tokio task while the write ran on the Spark task thread. To keep that overlap, IcebergWriteExec runs a native input on a Tokio task of its own behind a channel of two batches, and execute_plan keeps such a write on the task thread. CometIcebergCompactionBenchmark times Iceberg's rewrite_data_files, whose file group rewrites take this path, under stock Spark and with Comet's native scan and writer.
comphead
force-pushed
the
iceberg-compaction
branch
from
December 4, 2026 22:14
14dd80e to
ea555b1
Compare
…native plan The rewrite plans that CometIcebergRewriteActionSuite captures have the same nodes whether the native write runs the scan of its file group in its own native plan or reads the scan's batches over FFI. The suite now also records the RDDs of each execution's jobs, and asserts that the bin-pack rewrites, with and without delete files, run CometIcebergScanWriteRDD, and that the sort and zOrder rewrites, which have a sort between the scan and the write, do not.
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.
Experiment with Iceberg bin pack compaction test