-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Conversation
core/src/test/java/org/apache/iceberg/TestMetadataUpdateParser.java
Outdated
Show resolved
Hide resolved
core/src/test/java/org/apache/iceberg/TestMetadataUpdateParser.java
Outdated
Show resolved
Hide resolved
c82406f
to
23ae25d
Compare
There was a problem hiding this 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.
bb2ce44
to
33a5ab9
Compare
Removed the sorting on fields in the unbound partition spec and sort order. |
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. |
Adds toJson / fromJson implementations for two more implementations of
MetadataUpdate
:AddPartitionSpec
AddSortOrder
Following up on PR feedback from #4632, this PR also renames the
writeAs***
andreadAs***
by dorpping theAs
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 theMetadataUpdate
file. As it was skipped in the last PR, I moved it down so it's now moved back up.