Skip to content

refactor(scan): rename position delete index key to referenced data file - #3570

Open
dragonknightk wants to merge 1 commit into
apache:mainfrom
dragonknightk:refactor/rename-pos-deletes-index
Open

dragonknightk wants to merge 1 commit into
apache:mainfrom
dragonknightk:refactor/rename-pos-deletes-index

Conversation

@dragonknightk

Copy link
Copy Markdown

Which issue does this PR close?

What changes are included in this PR?

Renames PopulatedDeleteFileIndex::pos_deletes_by_path to
pos_deletes_by_referenced_data_file in
crates/iceberg/src/delete_file_index.rs, together with its local bindings
and the comments that mention it.

The field is keyed by the path of the data file a position delete applies to,
not by the delete file's own path, so the old name was ambiguous. It is
private, so there is no behavior or public API change.

Are these changes tested?

Existing coverage only; no test was added or changed. cargo fmt --all -- --check, cargo clippy -p iceberg --all-targets -- -D warnings, and
cargo test -p iceberg --lib delete_file_index (23 tests) all pass.

AI Disclosure

Codex and Grok Bot, working for dragonknightk, contributed to this code.

`PopulatedDeleteFileIndex::pos_deletes_by_path` is keyed by the path of the
data file a position delete refers to, not by the delete file's own path.
The name left that ambiguous, so rename the field and its local bindings to
`pos_deletes_by_referenced_data_file` and update the comments that mention it.

Closes apache#3359, the follow-up requested in the apache#3145 review. The field is
private, so there is no behavior or public API change.

Generated-by: Codex and Grok Bot, working for dragonknightk
@dragonknightk

Copy link
Copy Markdown
Author

Hi @mbutrovich — this closes #3359, the rename you asked to track in the #3145 review. One file, 14 lines, private field only: no behavior or public API change. cargo fmt, clippy --all-targets -D warnings and the 23 delete_file_index tests all pass. Could you take a look? (^▽^)

@mbutrovich mbutrovich left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Straightforward mechanical rename, thanks @dragonknightk!

This branch has not been deployed

No deployments
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.

Rename position delete index to clarify referenced data file key

2 participants