-
Notifications
You must be signed in to change notification settings - Fork 136
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
Fix docs on website #7559
Fix docs on website #7559
Conversation
site/docs/develop/java.md
Outdated
NessieApiV2 api = NessieClientBuilder.builder() | ||
.withUri(URI.create("http://localhost:19121/api/v2")) | ||
.build(NessieApiV2.class); | ||
NessieApiV1 api = NessieClientBuilder.createClientBuilder(null, null) |
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.
API v2 is default now. V1 is deprecated. Does v2 not work?
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.
v2 works, but line 27 above says NessieApiV1 should be used. If v2 is the default now, line 27 needs a change then.
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.
Pls fix line 27 :)
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.
@dimas-b When you say API v2 is default now, I hope this covers all the scenarios, like flink with java, python etc. If so, docs might need to be corrected at few more places. For example - https://projectnessie.org/tools/iceberg/flink/#configuration.
Please confirm.
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.
These examples are for direct java client interaction with Nessie Servers (e.g. custom tools). Engines like Spark, Flink, etc. interact with Nessie Servers via NessieCatalog
, which is part of Iceberg jars. NessieCatalog
has options for selecting the API version, but that is beyond the scope of this example. IIRC, we need to wait for Iceberg 1.4.0 to release before we can update examples for catalog properties to use v2.
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.
Thank you for the explanation. This helps.
Thanks for the PR, @pratyakshsharma! Can you sign the CLA? |
@snazy This is my second PR in nessie. I had signed the CLA in my first PR itself. |
Ah, okay, nvm |
ba81ddd
to
4b29b80
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.
Generalli LGTM, just a minor comment, and please change the references example to stream()
as discussed.
Please take another pass @dimas-b |
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 changes look good to me. One thing I noticed is that the SQL example can't work without a CREATE NAMESPACE. Would you mind adding a CREATE NAMESPACE nessie.testing;
to the SQL
section?
Good point. I had faced this issue when I was trying out the commands. Let me add the instructions there. |
A user on Zulip just spotted what seems to be another inconsistency: https://projectnessie.org/tools/sql/#dropping-branchestags There is no support for @pratyakshsharma do you want to include a fix for that as well? |
See #7559. |
Tackled in #7570, no need to change this PR! |
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.
Thanks a lot for you contribution @pratyakshsharma ! 👍
Fixed docs at various places, that I came across as part of my PoC on Nessie.