kbendick commented on code in PR #5118:
URL: https://github.com/apache/iceberg/pull/5118#discussion_r907804968
##########
core/src/main/java/org/apache/iceberg/rest/responses/LoadTableResponse.java:
##########
@@ -53,6 +53,8 @@ private LoadTableResponse(String metadataLocation,
TableMetadata metadata, Map<S
@Override
public void validate() {
+ Preconditions.checkNotNull(metadata, "Invalid metadata: null");
+ Preconditions.checkNotNull(metadataLocation, "Invalid metadata location:
null");
Review Comment:
Since `validate` is for ensuring that all requirements are met from results
received externally, it makes sense to have the `metadata-location` check here.
--
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]