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

iceberg: miscellaneous changes, copy methods #23394

Merged
merged 6 commits into from
Sep 20, 2024

Conversation

andrwng
Copy link
Contributor

@andrwng andrwng commented Sep 20, 2024

Adds some miscellaneous small changes, and a few copy methods (types, schema, partition_spec) that will be helpful in building metadata.

Backports Required

  • none - not a bug fix
  • none - this is a backport
  • none - issue does not exist in previous branches
  • none - papercut/not impactful enough to backport
  • v24.2.x
  • v24.1.x
  • v23.3.x

Release Notes

  • none

This was missing, but it's a required field.
When operating on table metadata, it'll be handy to make copies of the
schema to pass around, e.g. for serialization. To that end, this adds
copy methods for types.
Implements a struct copy method used for schema copies, as this will be
useful for serializating metadata by const ref.

Swaps out the identifier fields container for one that is default
copyable.
Similar to the recent copy metods for schemas, partition specs will also
be serialized. It'd be convenient for serialization to have a copy
method, so serialization doesn't necessarily need to move the spec.
@vbotbuildovich
Copy link
Collaborator

vbotbuildovich commented Sep 20, 2024

@andrwng andrwng merged commit 8eee277 into redpanda-data:dev Sep 20, 2024
18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants