Skip to content
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

C++: accessors for custom attributes #286

Merged
merged 1 commit into from
Aug 22, 2024

Conversation

andrwng
Copy link

@andrwng andrwng commented Aug 22, 2024

Custom attributes are only settable when building a schema. There was previously no way to get the attributes from a parsed schema. This will be useful for reading Iceberg manifests, since we'll want to pull the field ids for each type.

Custom attributes are only settable when building a schema. There was
previously no way to get the attributes from a parsed schema. This will
be useful for reading Iceberg manifests, since we'll want to pull the
field ids for each type.
Copy link

@jcipar jcipar left a comment

Choose a reason for hiding this comment

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

The name customAttributes returning the number of custom attributes seems a little weird, but I guess it matches leaves() -> leafAttributes_.size() 🤷

@andrwng
Copy link
Author

andrwng commented Aug 22, 2024

The name customAttributes returning the number of custom attributes seems a little weird, but I guess it matches leaves() -> leafAttributes_.size() 🤷

Yea, I'm not a fan, but you're right I did this to match the naming convention in the codebase.

@andrwng andrwng merged commit 3bbe748 into redpanda-data:release-1.12.0-redpanda Aug 22, 2024
1 check passed
andrwng added a commit to andrwng/redpanda that referenced this pull request Aug 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants