-
Notifications
You must be signed in to change notification settings - Fork 3k
Spark: Allow create table in hadoop catalog root namespace #4024
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
Conversation
| } | ||
|
|
||
| private Identifier namespaceToIdentifier(String[] namespace) { | ||
| assert namespace.length > 0; |
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.
We don't use assertions. If this is worth checking, then use a Precondition to create a readable error message.
|
|
||
| public TestCreateTable(String catalogName, String implementation, Map<String, String> config) { | ||
| super(catalogName, implementation, config); | ||
| this.isHadoopCatalog = "testhadoop".equals(catalogName); |
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.
There's no need for a field. Can you just move this test into the Assume line?
|
There are a couple minor things to fix, but overall good catch. Thanks, @pan3793! |
|
I'm adding this to 0.13.1 since it is a regression. |
|
Addressed comments, also ported to spark 3.0/3.1 |
|
LGTM. Thanks for catching this @pan3793! |
|
Thanks, @pan3793! |
(cherry picked from commit 614ec11)
This is a functional regression issue in Iceberg 0.13.0. At least in Iceberg 0.12.x(I do not test every previous version), Iceberg allows creating table under the root namespace of hadoop catalog, but #3722 broke it.
Use Spark 3.2.0 and Iceberg 0.13.0, error occurs when trying to create table under root namespace of hadoop catalog.