nk1506 commented on code in PR #8796: URL: https://github.com/apache/iceberg/pull/8796#discussion_r1354350296
########## nessie/src/main/java/org/apache/iceberg/nessie/NessieIcebergClient.java: ########## @@ -448,8 +461,8 @@ public void commitTable( } ImmutableIcebergTable.Builder newTableBuilder = ImmutableIcebergTable.builder(); - if (expectedContent != null) { - newTableBuilder.id(expectedContent.getId()); + if (contentId != null) { Review Comment: Why null check ? it seems `ImmutableIcebergTable.id` is nullable. ########## nessie/src/main/java/org/apache/iceberg/nessie/NessieIcebergClient.java: ########## @@ -426,13 +426,26 @@ public boolean dropTable(TableIdentifier identifier, boolean purge) { return !threw; } + /** @deprecated will be removed after 1.5.0 */ + @Deprecated public void commitTable( TableMetadata base, TableMetadata metadata, String newMetadataLocation, IcebergTable expectedContent, ContentKey key) throws NessieConflictException, NessieNotFoundException { + throw new UnsupportedOperationException( Review Comment: I think this overload is not required at all. Since this is not being used anywhere we can safely remove this. -- 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: issues-unsubscr...@iceberg.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@iceberg.apache.org For additional commands, e-mail: issues-h...@iceberg.apache.org