Skip to content

Conversation

@wgtmac
Copy link
Member

@wgtmac wgtmac commented May 13, 2025

  • add roundtrip json conversion to name mapping
  • change MappedField to use std::shared_ptr for better usability
  • use optional field_id in MappedField

@wgtmac wgtmac force-pushed the name_mapping_json branch from 019007d to 6a0ff9b Compare May 13, 2025 02:48
@wgtmac wgtmac force-pushed the name_mapping_json branch 2 times, most recently from 504e8ca to 1411373 Compare May 13, 2025 05:14
- add roundtrip json conversion to name mapping
- change MappedField to use std::shared_ptr for better usability
- use optional field_id in MappedField
@wgtmac wgtmac force-pushed the name_mapping_json branch from 1411373 to 39fbe30 Compare May 13, 2025 05:31
/// \brief A required list of 0 or more names for a field.
std::unordered_set<std::string> names;
/// \brief An optional Iceberg field ID used when a field's name is present in `names`.
/// TODO(gangwu): check if we need to make it optional
Copy link
Collaborator

Choose a reason for hiding this comment

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

The TODO note can be deleted.

Copy link
Member Author

Choose a reason for hiding this comment

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

Good catch!

@Fokko Fokko merged commit 6276b8d into apache:main May 13, 2025
6 checks passed
@Fokko
Copy link
Contributor

Fokko commented May 13, 2025

Looks good @wgtmac, thanks for the review @lidavidm and @zhjwpku 🙌

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.

4 participants