Use returned cuDF Parquet footer for Iceberg writes [fast-ut] - #15877
Open
liurenjie1024 wants to merge 6 commits into
Open
Use returned cuDF Parquet footer for Iceberg writes [fast-ut]#15877liurenjie1024 wants to merge 6 commits into
liurenjie1024 wants to merge 6 commits into
Conversation
Signed-off-by: Ray Liu <liurenjie2008@gmail.com>
liurenjie1024
marked this pull request as ready for review
September 4, 2026 03:32
Contributor
Greptile SummaryThe PR avoids reopening completed Iceberg Parquet files by obtaining footer metadata directly from the cuDF writer.
Confidence Score: 5/5The PR appears safe to merge because no blocking failure remains in the eligible follow-up review scope. No blocking failure remains. Important Files Changed
Sequence DiagramsequenceDiagram
participant Iceberg as Iceberg writer
participant Appender as GpuIcebergParquetAppender
participant Writer as GpuParquetWriter
participant cuDF as cuDF ParquetTableWriter
participant Output as Output stream
participant Reader as Shaded ParquetFileReader
Iceberg->>Appender: close()
Appender->>Writer: closeAndGetFooter()
Writer->>cuDF: closeAndGetFooter()
cuDF-->>Writer: HostMemoryBuffer
Writer->>Output: flush buffered data and close
Writer-->>Appender: footer buffer
Appender->>Reader: open(HMBInputFile(buffer))
Reader-->>Appender: ParquetMetadata
Appender->>Appender: close footer buffer
Iceberg->>Appender: metrics() / splitOffsets()
Appender-->>Iceberg: footer-derived metadata
Reviews (5): Last reviewed commit: "Remove unused Iceberg input file helper" | Re-trigger Greptile |
Signed-off-by: Ray Liu <liurenjie2008@gmail.com>
Signed-off-by: Ray Liu <liurenjie2008@gmail.com>
Signed-off-by: Ray Liu <liurenjie2008@gmail.com>
Signed-off-by: Ray Liu <liurenjie2008@gmail.com>
Collaborator
Author
|
build |
Collaborator
|
Please clean IcebergFileIO.newIcebergInputFile if it's dead now. |
Signed-off-by: Ray Liu <liurenjie2008@gmail.com>
Collaborator
Author
|
Removed |
Collaborator
Author
|
build |
Collaborator
|
build |
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.
Related to NVIDIA/cudf#18886.
Description
Iceberg GPU writes currently reopen each Parquet output file after closing it to obtain footer metadata for file metrics and split offsets. This causes an unnecessary read from the output filesystem, which is especially costly for remote storage.
This change uses the new cuDF
ParquetTableWriter.closeAndGetFooter()API to return the metadata-only Parquet footer during writer finalization.GpuParquetWriterexposes the returned host buffer to the Iceberg appender, which parses it through Iceberg's shaded Parquet reader without reopening the output file.The shared columnar writer close path preserves the existing finalization sequence and closes the returned buffer if output finalization fails.
Validation:
This change and PR description were prepared with AI assistance from OpenAI Codex.
Checklists
Documentation
Testing
(Iceberg integration suite with Spark 4.1.1 and Iceberg 1.11.0.)
Performance