dolfinus opened a new issue, #13984:
URL: https://github.com/apache/iceberg/issues/13984

   ### Apache Iceberg version
   
   1.9.2 (latest release)
   
   ### Query engine
   
   Spark
   
   ### Please describe the bug 🐞
   
   ```python
   spark.sql("CREATE DATABASE iceberg_catalog.myschema LOCATION 
's3a://bucket/warehouse/myschema'")
   spark.sql("CREATE TABLE iceberg_catalog.myschema.mytable (id INT) USING 
iceberg")
   ```
   
   For HadoopCatalog, table is created with location = 
`s3a://bucket/warehouse/myschema`, because it implements `BaseMetastoreCatalog` 
and overrides method `defaultWarehouseLocation`:
   
https://github.com/apache/iceberg/blob/apache-iceberg-1.9.2/hive-metastore/src/main/java/org/apache/iceberg/hive/HiveCatalog.java#L705-L711
   
   With RESTCatalog table is created with no explicit location, because it 
implements `BaseCatalog` which has no `defaultWarehouseLocation` method.
   
   ### Willingness to contribute
   
   - [ ] I can contribute a fix for this bug independently
   - [x] I would be willing to contribute a fix for this bug with guidance from 
the Iceberg community
   - [ ] I cannot contribute a fix for this bug at this time


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