Skip to content

Conversation

ZENOTME
Copy link

@ZENOTME ZENOTME commented Mar 17, 2025

Which issue does this PR close?

  • Closes #.

What changes are included in this PR?

Are these changes tested?

@ZENOTME ZENOTME force-pushed the zj/process_delete_entry_mr branch 2 times, most recently from af5d27f to a81ef9a Compare March 17, 2025 07:06
@ZENOTME ZENOTME force-pushed the zj/process_delete_entry_mr branch from a81ef9a to 59af94f Compare March 17, 2025 07:09
@ZENOTME ZENOTME requested review from Li0k, chenzl25 and xxchan March 18, 2025 06:04
self.new_manifest_writer(&ManifestContentType::Data, spec_id)?,
);
}
data_file_writer.as_mut().unwrap().add_entry(entry)?;
Copy link

Choose a reason for hiding this comment

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

add_entry -> add_delete_entry

self.new_manifest_writer(&ManifestContentType::Deletes, spec_id)?,
);
}
delete_file_writer.as_mut().unwrap().add_entry(entry)?;
Copy link

Choose a reason for hiding this comment

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

add_entry -> add_delete_entry

Copy link

@Li0k Li0k left a comment

Choose a reason for hiding this comment

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

LGTM

@xxchan xxchan requested a review from Copilot March 18, 2025 09:33
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

@xxchan xxchan requested a review from Copilot March 18, 2025 09:51
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR adds support for delete manifest processing in snapshot production by introducing a new partition_spec_id parameter. It also updates various builders and tests across the codebase to propagate this new field.

  • Added partition_spec_id to the manifest writer functions and related builders.
  • Implemented new delete manifest writing logic in transaction and snapshot production.
  • Updated test files and file writers to include the additional partition_spec_id parameter.

Reviewed Changes

Copilot reviewed 21 out of 21 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
crates/iceberg/src/transaction.rs Updated new_manifest_writer signature and delete manifest logic.
crates/iceberg/src/scan.rs
crates/iceberg/src/io/object_cache.rs
Added partition_spec_id to DataFileBuilder invocations in tests.
crates/iceberg/src/writer/base_writer/data_file_writer.rs Modified builder construction to include partition_spec_id parameter.
crates/integration_tests/tests/shared_tests/append_partition_data_file_test.rs Updated builder calls to supply partition_spec_id.
crates/iceberg/src/writer/base_writer/sort_position_delete_writer.rs Incorporated partition_spec_id into sort position delete logic.
crates/iceberg/src/writer/base_writer/equality_delete_writer.rs Revised equality delete writer config and tests for partition_spec_id.
crates/iceberg/src/arrow/record_batch_partition_spliter.rs Adjusted import and added accessor for partition_spec.
crates/iceberg/src/spec/manifest.rs Updated manifest entry conversion to pass partition_spec_id.
crates/iceberg/src/writer/function_writer/fanout_partition_writer.rs Added partition_spec_id rewriting to data files.
crates/iceberg/src/writer/file_writer/parquet_writer.rs Set partition_spec_id in file writer and updated tests accordingly.
(Other files have similar updates to builders and tests to pass partition_spec_id.)

Co-authored-by: Copilot <[email protected]>
@ZENOTME ZENOTME merged commit 06d5321 into dev_rebase_main_20250307 Mar 18, 2025
21 checks passed
@ZENOTME ZENOTME deleted the zj/process_delete_entry_mr branch March 18, 2025 10:14
Li0k added a commit that referenced this pull request Mar 25, 2025
Li0k pushed a commit that referenced this pull request Mar 25, 2025
* support spec id in data file

* support proccess delete entry

* fullfill partition spec id

* fix

* fix spelling mistake

Co-authored-by: Copilot <[email protected]>

---------

Co-authored-by: ZENOTME <[email protected]>
Co-authored-by: Copilot <[email protected]>
xxchan pushed a commit that referenced this pull request Mar 25, 2025
* support spec id in data file

* support proccess delete entry

* fullfill partition spec id

* fix

* fix spelling mistake

Co-authored-by: Copilot <[email protected]>

---------

Co-authored-by: ZENOTME <[email protected]>
Co-authored-by: Copilot <[email protected]>
xxchan pushed a commit that referenced this pull request Mar 25, 2025
* support spec id in data file

* support proccess delete entry

* fullfill partition spec id

* fix

* fix spelling mistake

Co-authored-by: Copilot <[email protected]>

---------

Co-authored-by: ZENOTME <[email protected]>
Co-authored-by: Copilot <[email protected]>
xxchan pushed a commit that referenced this pull request Mar 25, 2025
* support spec id in data file

* support proccess delete entry

* fullfill partition spec id

* fix

* fix spelling mistake

Co-authored-by: Copilot <[email protected]>

---------

Co-authored-by: ZENOTME <[email protected]>
Co-authored-by: Copilot <[email protected]>
Signed-off-by: xxchan <[email protected]>
xxchan pushed a commit that referenced this pull request Mar 25, 2025
* support spec id in data file

* support proccess delete entry

* fullfill partition spec id

* fix

* fix spelling mistake

Co-authored-by: Copilot <[email protected]>

---------

Co-authored-by: ZENOTME <[email protected]>
Co-authored-by: Copilot <[email protected]>
Signed-off-by: xxchan <[email protected]>
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.

2 participants