Skip to content

Remove leftover name-mapping bookkeeping from _ConvertToIceberg - #4381

Open
chenjian2664 wants to merge 1 commit into
apache:mainfrom
chenjian2664:chenjian2664/bytequay/remove-name-mapping-leftovers-from-convert-to-iceberg
Open

chenjian2664 wants to merge 1 commit into
apache:mainfrom
chenjian2664:chenjian2664/bytequay/remove-name-mapping-leftovers-from-convert-to-iceberg

Conversation

@chenjian2664

Copy link
Copy Markdown
Contributor

Rationale for this change

Name mapping moved out of _ConvertToIceberg into apply_name_mapping in #1014, but the class docstring still says it applies name-mapping IDs, and list() and map() still push and pop _field_names around _field_id, which no longer reads them. This removes that dead bookkeeping and corrects the docstring.

Are these changes tested?

Are there any user-facing changes?

Name mapping moved out of this visitor into apply_name_mapping in apache#1014,
but the docstring still claims it applies name-mapping IDs, and list()
and map() still push and pop field names around the _field_id calls,
which no longer read them.
@chenjian2664
chenjian2664 marked this pull request as ready for review November 15, 2026 01:27
Copilot AI balanced review requested due to automatic review settings November 15, 2026 01:27

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟢 Approval recommended

No active review issues were identified for the converter bookkeeping and docstring cleanup.

No open issues 🎉

What changed in this PR

Cleans up _ConvertToIceberg after name-mapping logic moved to apply_name_mapping in #1014, without changing field-ID selection or nested error-path tracking.

Changes:

  • Removes redundant field-name stack updates around list and map ID lookups.
  • Corrects the class docstring by removing the outdated name-mapping claim.
File Description
pyiceberg/​io/​pyarrow.py Removes unused list/map bookkeeping and updates the converter docstring.

Review effort: Balanced

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.

2 participants