Skip to content

feat: Implement EqualityDeleteWriter for equality delete files#583

Merged
wgtmac merged 3 commits intoapache:mainfrom
shangxinli:implement-equality-delete-writer
Mar 15, 2026
Merged

feat: Implement EqualityDeleteWriter for equality delete files#583
wgtmac merged 3 commits intoapache:mainfrom
shangxinli:implement-equality-delete-writer

Conversation

@shangxinli
Copy link
Contributor

Implement the EqualityDeleteWriter following the same PIMPL pattern as DataWriter. The writer accepts Arrow data matching the equality delete schema (columns for the equality field values) and produces metadata with content=kEqualityDeletes, equality_ids set from options, and sort_order_id propagated from options.

Copy link
Member

@wgtmac wgtmac left a comment

Choose a reason for hiding this comment

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

Note: This review was generated by Gemini.

Summary & Recommendation

  • Request Changes: Address the missing partition_spec_id logic and add the TODO to track missing encryption support.

Implement the EqualityDeleteWriter following the same PIMPL pattern as
DataWriter. The writer accepts Arrow data matching the equality delete
schema (columns for the equality field values) and produces metadata
with content=kEqualityDeletes, equality_ids set from options, and
sort_order_id propagated from options.
- Add TODO comment for encryption key_metadata field
- Populate partition_spec_id from spec in DataFile metadata
- Add test assertion for partition_spec_id
@wgtmac wgtmac force-pushed the implement-equality-delete-writer branch from 880ad9f to f6913b6 Compare March 15, 2026 02:55
Copy link
Member

@wgtmac wgtmac left a comment

Choose a reason for hiding this comment

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

Thanks @shangxinli for working on this and @evindj for reviewing it!

@wgtmac wgtmac force-pushed the implement-equality-delete-writer branch from f6913b6 to 7701457 Compare March 15, 2026 03:08
@wgtmac wgtmac merged commit 1afe65c into apache:main Mar 15, 2026
12 checks passed
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.

3 participants