Skip to content

feat(parquet): implement file commit protocol for native Parquet writes#4746

Open
peterxcli wants to merge 4 commits into
apache:mainfrom
peterxcli:feat/spark-file-commit
Open

feat(parquet): implement file commit protocol for native Parquet writes#4746
peterxcli wants to merge 4 commits into
apache:mainfrom
peterxcli:feat/spark-file-commit

Conversation

@peterxcli

@peterxcli peterxcli commented Jun 28, 2026

Copy link
Copy Markdown
Member

Native Parquet writes now write to the task temp file returned by Spark's FileCommitProtocol, then commit or abort tasks through Spark's standard lifecycle.

Pass the task output path through the native Parquet writer proto, wire commit protocol setup in CometNativeWriteExec, and assert committed output naming/cleanup in CometParquetWriterSuite.

Which issue does this PR close?

Closes #2827.

Rationale for this change

What changes are included in this PR?

How are these changes tested?

3.5: https://github.com/peterxcli/datafusion-comet/actions/runs/29285856984
4.1: https://github.com/peterxcli/datafusion-comet/actions/runs/29274265197

Native Parquet writes now write to the task temp file returned by Spark's FileCommitProtocol, then commit or abort tasks through Spark's standard lifecycle.

Pass the task output path through the native Parquet writer proto, wire commit protocol setup in CometNativeWriteExec, and assert committed output naming/cleanup in CometParquetWriterSuite.
@comphead

Copy link
Copy Markdown
Contributor

Thanks @peterxcli please check on your fork https://github.com/apache/datafusion-comet/actions/workflows/spark_sql_writer_tests.yml

@peterxcli peterxcli marked this pull request as ready for review July 13, 2026 18:24
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.

Implement file commit protocol for native Parquet writes

2 participants