ajantha-bhat commented on code in PR #8909:
URL: https://github.com/apache/iceberg/pull/8909#discussion_r1382844788
##########
nessie/src/main/java/org/apache/iceberg/nessie/NessieTableOperations.java:
##########
@@ -132,74 +131,36 @@ protected void doRefresh() {
@Override
protected void doCommit(TableMetadata base, TableMetadata metadata) {
+ Content content = null;
+ try {
+ content =
+
client.getApi().getContent().key(key).reference(client.getReference()).get().get(key);
+ } catch (NessieNotFoundException e) {
Review Comment:
updated.
##########
nessie/src/main/java/org/apache/iceberg/nessie/NessieTableOperations.java:
##########
@@ -132,74 +131,36 @@ protected void doRefresh() {
@Override
protected void doCommit(TableMetadata base, TableMetadata metadata) {
+ Content content = null;
+ try {
+ content =
+
client.getApi().getContent().key(key).reference(client.getReference()).get().get(key);
+ } catch (NessieNotFoundException e) {
+ // Ignore the exception as the first commit may not have the content
present for the key.
+ }
+
+ if (content != null && content.getType() == Content.Type.ICEBERG_VIEW) {
Review Comment:
updated.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]