cobookman commented on pull request #2963:
URL: https://github.com/apache/iceberg/pull/2963#issuecomment-898187675


   > @cobookman the PR referenced is merged, could you update the documentation 
with the correct path resolution strategy? Thank you!
   
   Happy to, just want to understand what the expected write behaviour is for 
folder-storage & s3. Having the following fail on my end.
   ```
   CREATE TABLE my_catalog.sampledb.my_table (
       id bigint,
       data string,
       category string)
   USING iceberg
   OPTIONS (
       'write.object-storage.enabled'=true, 
       'write.folder-storage.path'='s3://kda-jython-test/some-random-folder/')
   PARTITIONED BY (category);
   
   INSERT INTO my_catalog.sampledb.my_table VALUES (1, "some data", "some 
category");
   java.lang.NullPointerException
        at 
org.apache.iceberg.LocationProviders.stripTrailingSlash(LocationProviders.java:135)
        at 
org.apache.iceberg.LocationProviders.access$000(LocationProviders.java:34)
        at 
org.apache.iceberg.LocationProviders$ObjectStoreLocationProvider.<init>(LocationProviders.java:99)
        at 
org.apache.iceberg.LocationProviders.locationsFor(LocationProviders.java:65)
        at 
org.apache.iceberg.BaseMetastoreTableOperations.locationProvider(BaseMetastoreTableOperations.java:200)
        at org.apache.iceberg.BaseTable.locationProvider(BaseTable.java:219)
        at 
org.apache.iceberg.spark.source.SparkWrite.createWriterFactory(SparkWrite.java:172)
        at 
org.apache.iceberg.spark.source.SparkWrite.access$600(SparkWrite.java:87)
        at 
org.apache.iceberg.spark.source.SparkWrite$BaseBatchWrite.createBatchWriterFactory(SparkWrite.java:226)
   ```


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