kbendick commented on code in PR #5118:
URL: https://github.com/apache/iceberg/pull/5118#discussion_r907814472
##########
core/src/main/java/org/apache/iceberg/rest/responses/LoadTableResponse.java:
##########
@@ -106,6 +113,8 @@ public Builder addAllConfig(Map<String, String> properties)
{
public LoadTableResponse build() {
Preconditions.checkNotNull(metadata, "Invalid metadata: null");
+ // This is causing errors in TestRESTCatalog via CatalogHandlers
+ // Preconditions.checkNotNull(metadataLocation, "Invalid metadata
location: null");
Review Comment:
Here's an example call that fails, which _shouldnt_ have `metadataLocation`
yet because the table hasn't been created (and the metadata location hasn't
been determined yet):
https://github.com/apache/iceberg/blob/e0ff3c6e9876ce04c890908e375c876d14240c3e/core/src/test/java/org/apache/iceberg/catalog/CatalogTests.java#L1450-L1458
--
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]