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 - Use unbound variants of SortOrder / PartitionSpec for REST Catalog's CreateTableRequest #4880

Merged

Conversation

kbendick
Copy link
Contributor

@kbendick kbendick commented May 27, 2022

As I've been working on some serialization related tests for the REST catalog, it came to my attention that we should be storing the create table requests sort order and partition spec as UnboundSortOrder and UnboundPartitionSpec, respectively.

Generally speaking, we are moving towards using Unbound variants of all things whenever possible, and letting the binding to actual fields take place later in the process.

I am working on some PRs that add additional serialization tests in, but I wanted to get these changes in sooner so that anybody who might be implementing or testing agains the RESTCatalog would have these changes available to them.

@kbendick
Copy link
Contributor Author

cc @rdblue @nastra @Fokko.

As mentioned, additional tests that exercise the exact SerDe of these classes are coming, but this patch is necessary to make testing out the REST catalog in its current form easier so I figured we might as well not wait on those other PRs =)

This code is indeed tested via TestRESTCatalog and some other places though.

@kbendick
Copy link
Contributor Author

Also, I wanted to get the small change to the API module (changing access modifier of SortOrder in as soon as possible).

private PartitionSpec spec;
private SortOrder order;
private UnboundPartitionSpec spec;
private UnboundSortOrder order;
Copy link
Contributor

Choose a reason for hiding this comment

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

We need to make sure we follow up with a serialization test for this class.

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.

+1 to unblock people testing with this, but I really would like to get a serialization test for it soon!

@rdblue rdblue merged commit ed24d93 into apache:master May 27, 2022
@rdblue
Copy link
Contributor

rdblue commented May 27, 2022

Thanks, @kbendick!

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.

2 participants