pvary commented on code in PR #12528: URL: https://github.com/apache/iceberg/pull/12528#discussion_r2095707435
########## core/src/test/java/org/apache/iceberg/TestTables.java: ########## @@ -118,9 +131,17 @@ private static TestTable createTable( throw new AlreadyExistsException("Table %s already exists at location: %s", name, temp); } - ops.commit( - null, - newTableMetadata(schema, spec, sortOrder, temp.toString(), properties, formatVersion)); + TableMetadata metadata = + newTableMetadata(schema, spec, sortOrder, temp.toString(), properties, formatVersion); + + if (metaTemp != null) { + metadata = + TableMetadata.buildFrom(metadata) + .discardChanges() + .withMetadataLocation(metaTemp.toString()) + .build(); + } + ops.commit(null, metadata); Review Comment: nit newline -- 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