nastra commented on code in PR #12927: URL: https://github.com/apache/iceberg/pull/12927#discussion_r2068374243
########## core/src/main/java/org/apache/iceberg/TableMetadata.java: ########## @@ -311,6 +315,7 @@ public String toString() { Preconditions.checkArgument( metadataFileLocation == null || changes.isEmpty(), "Cannot create TableMetadata with a metadata location and changes"); + Preconditions.checkArgument(keys != null, "Keys cannot be null"); Review Comment: maybe update the error msg to mention that it's about `Encryption Keys` as `Keys` might not be immediately obvious -- 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