Skip to content

feat: add name mapping #93

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
May 12, 2025
Merged

feat: add name mapping #93

merged 2 commits into from
May 12, 2025

Conversation

wgtmac
Copy link
Member

@wgtmac wgtmac commented May 8, 2025

No description provided.

namespace {

// Helper function to join a list of field names with a dot
std::string JoinByDot(std::span<const std::string> parts) {
Copy link
Member

Choose a reason for hiding this comment

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

I guess you can use join_view for this too

Copy link
Member Author

Choose a reason for hiding this comment

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

I tried it but it seems that Clang does not yet implement this.

@@ -0,0 +1,61 @@
/*
Copy link
Collaborator

Choose a reason for hiding this comment

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

Should we install this header by removing the internal suffix? I don't see it being used in this PR, but in #94, it's included in visit_type.h, which is meant to be installed for type manipulation. If we don't install this header, it might lead to compilation issues.

Copy link
Member Author

Choose a reason for hiding this comment

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

I was using it for the visitor but not it is not required. Let me remove it for now. I saw that you have added that in your PR.

@@ -36,7 +37,6 @@ set(ICEBERG_SOURCES
transform.cc
transform_function.cc
type.cc
snapshot.cc
Copy link
Contributor

Choose a reason for hiding this comment

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

Not a CPP guy, but why is snapshot.cc removed here? 🤔

Copy link
Member Author

Choose a reason for hiding this comment

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

It is duplicate at line 32 :)

@Fokko Fokko merged commit 11667a9 into apache:main May 12, 2025
6 checks passed
@Fokko
Copy link
Contributor

Fokko commented May 12, 2025

Thanks @wgtmac for adding this, and @lidavidm @zhjwpku for the reviews 🙌

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