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

feat: preserve metadata for Field and Schema in proto #6865

Merged
merged 1 commit into from
Jul 6, 2023
Merged

feat: preserve metadata for Field and Schema in proto #6865

merged 1 commit into from
Jul 6, 2023

Conversation

jonahgao
Copy link
Member

@jonahgao jonahgao commented Jul 6, 2023

Which issue does this PR close?

None

Rationale for this change

In our system, we store metadata in both the Field and the Schema, such as the default values for columns and the primary keys for tables.

But once those metadata are serialized, they are lost.

I wonder if we can preserve those metadata in the proto.

What changes are included in this PR?

Preserve metadata for Field and Schema in proto

Are these changes tested?

Yes

Are there any user-facing changes?

New message fields in proto

Copy link
Contributor

@alamb alamb left a comment

Choose a reason for hiding this comment

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

Looks great to me -- thanks @jonahgao

@alamb alamb merged commit 71ff27c into apache:main Jul 6, 2023
@jonahgao
Copy link
Member Author

jonahgao commented Jul 7, 2023

Thank you @alamb ❤️ .

@jonahgao jonahgao deleted the proto_metadata branch July 7, 2023 00:54
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