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

Core - Add MetadataUpdateParser implementation for AddPartitionSpec and AddSortOrder #4668

Merged
merged 1 commit into from
May 3, 2022

Conversation

kbendick
Copy link
Contributor

@kbendick kbendick commented Apr 29, 2022

Adds toJson / fromJson implementations for two more implementations of MetadataUpdate:

  1. AddPartitionSpec
  2. AddSortOrder

Following up on PR feedback from #4632, this PR also renames the writeAs*** and readAs*** by dorpping the As so that the functions read better. Also, the action constants have been made package-private so they can be shared with the tests.

I've also placed AddPartitionSpec into the switch statement based on its declaration order in the MetadataUpdate file. As it was skipped in the last PR, I moved it down so it's now moved back up.

@github-actions github-actions bot added the core label Apr 29, 2022
@kbendick kbendick force-pushed the metadata-update-serde-part-iii branch from c82406f to 23ae25d Compare April 29, 2022 17:43
Copy link
Contributor

@rdblue rdblue left a comment

Choose a reason for hiding this comment

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

I think this looks good other than sorting the partition spec fields and the sort order fields.

@kbendick kbendick force-pushed the metadata-update-serde-part-iii branch from bb2ce44 to 33a5ab9 Compare May 3, 2022 01:20
@kbendick
Copy link
Contributor Author

kbendick commented May 3, 2022

I think this looks good other than sorting the partition spec fields and the sort order fields.

Removed the sorting on fields in the unbound partition spec and sort order.

@kbendick
Copy link
Contributor Author

kbendick commented May 3, 2022

I removed the ordering of fields from the test. This should be good to go in maybe 10 more minutes once the last of the tests finish @rdblue.

@kbendick kbendick requested a review from rdblue May 3, 2022 02:04
@rdblue rdblue merged commit 62f3ca3 into apache:master May 3, 2022
@kbendick kbendick deleted the metadata-update-serde-part-iii branch May 3, 2022 05:59
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.

2 participants