-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Nessie: Support ApiV2 for Nessie client #6712
Conversation
ajantha-bhat
commented
Jan 31, 2023
•
edited
Loading
edited
- The default version is v1 to avoid forcing users to change their URI in the existing jobs.
- "client-api-version" catalog property is added to specify the API version in-case the user wants to use v2.
nessie/src/test/java/org/apache/iceberg/nessie/BaseTestIceberg.java
Outdated
Show resolved
Hide resolved
nessie/src/test/java/org/apache/iceberg/nessie/TestNamespace.java
Outdated
Show resolved
Hide resolved
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.
LGTM overall. Thanks, @ajantha-bhat ! Just a minor comment about test code.
nessie/src/test/java/org/apache/iceberg/nessie/TestNamespace.java
Outdated
Show resolved
Hide resolved
nessie/src/test/java/org/apache/iceberg/nessie/TestNamespace.java
Outdated
Show resolved
Hide resolved
nessie/src/test/java/org/apache/iceberg/nessie/TestNamespace.java
Outdated
Show resolved
Hide resolved
68e6d1c
to
135d103
Compare
nessie/src/test/java/org/apache/iceberg/nessie/TestNamespace.java
Outdated
Show resolved
Hide resolved
nessie/src/test/java/org/apache/iceberg/nessie/TestNamespace.java
Outdated
Show resolved
Hide resolved
135d103
to
9d6c4f2
Compare
nessie/src/main/java/org/apache/iceberg/nessie/NessieCatalog.java
Outdated
Show resolved
Hide resolved
nessie/src/test/java/org/apache/iceberg/nessie/TestNamespace.java
Outdated
Show resolved
Hide resolved
nessie/src/test/java/org/apache/iceberg/nessie/TestNamespace.java
Outdated
Show resolved
Hide resolved
nessie/src/main/java/org/apache/iceberg/nessie/NessieCatalog.java
Outdated
Show resolved
Hide resolved
70f2503
to
3fa4ca7
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.
Let’s wait with this one until Nessie‘s v2 API is out of beta and included in a Nessie release.
Rushing this likely causes more trouble Than necessary
ACK. |
nessie/src/main/java/org/apache/iceberg/nessie/NessieCatalog.java
Outdated
Show resolved
Hide resolved
nessie/src/main/java/org/apache/iceberg/nessie/NessieCatalog.java
Outdated
Show resolved
Hide resolved
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.
LGTM. Thanks, @ajantha-bhat !
@snazy: Can you please take a look at this PR again? Thanks |
nessie/src/main/java/org/apache/iceberg/nessie/NessieCatalog.java
Outdated
Show resolved
Hide resolved
nessie/src/main/java/org/apache/iceberg/nessie/NessieCatalog.java
Outdated
Show resolved
Hide resolved
nessie/src/main/java/org/apache/iceberg/nessie/NessieCatalog.java
Outdated
Show resolved
Hide resolved
I just rebased the PR (as it was stale) @snazy: The previous comments are addressed. Can you please take a look at this again? Thanks. |
nessie/src/test/java/org/apache/iceberg/nessie/TestNessieCatalog.java
Outdated
Show resolved
Hide resolved
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.
LGTM with one minor comment
ImmutableMap.of( | ||
"ref", | ||
ref, | ||
CatalogProperties.URI, | ||
uri, | ||
"auth-type", |
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.
is that not needed anymore?
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.
the default value NONE
itself. Hence, I just removed it to make less verbose.