singhpk234 commented on issue #4600:
URL: https://github.com/apache/iceberg/issues/4600#issuecomment-1104691256

   This would be happening because `write.object-storage.path` not being set, 
as when you enable `write.object-storage.enabled` this conf would be used.
   
   ```
    else if (PropertyUtil.propertyAsBoolean(properties,
           TableProperties.OBJECT_STORE_ENABLED,
           TableProperties.OBJECT_STORE_ENABLED_DEFAULT)) {
         return new ObjectStoreLocationProvider(location, properties);
   ```
   
   LocationProviders.stripTrailingSlash doesn't handle the case when the path 
being stripped slash from is null (it will do now from next release), which 
would be now since this is not null.
   
   setting this property `write.object-storage.path` should solve this issue.
   
   The storageLocation would be now : this.storageLocation = 
stripTrailingSlash(properties.get(OBJECT_STORE_PATH));
   ` return String.format("%s/%08x/%s/%s", storageLocation, hash, context, 
filename);`
   
   
   
   
   


-- 
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]

Reply via email to