prasanna-ds opened a new issue, #10701:
URL: https://github.com/apache/iceberg/issues/10701

   ### Apache Iceberg version
   
   1.4.2
   
   ### Query engine
   
   None
   
   ### Please describe the bug 🐞
   
   I am using [Apache XTable](https://github.com/apache/incubator-xtable) to 
convert Delta table format to Iceberg and register a table in the Glue Data 
Catalog. While building the Catalog, I pass a catalog parameter 
`table-override.write.metadata.path` to write the metadata to a different 
location apart from the base table. It works perfectly fine. However when I 
additionally set an AWS property `glue.skip-name-validation`, it is somehow 
skipped and there is a glue validation error.
   
   Problematic code snippet:
   
   ```
         import org.apache.xtable.iceberg.IcebergCatalogConfig
   
         val icebergCatalogConfig: IcebergCatalogConfig = 
IcebergCatalogConfig.builder
           .catalogImpl(ICEBERG_CATALOG_IMPL)
           .catalogName("glue_database_name")
           .catalogOptions(
             Map("glue.skip-name-validation" -> "true",
               "table-override.write.metadata.path" -> 
"s3://iceberg-metadata/schema/table/"
             ).asJava
           )
           .build
   ```
   
   Working code:
   
   ```
         import org.apache.xtable.iceberg.IcebergCatalogConfig
   
         val icebergCatalogConfig: IcebergCatalogConfig = 
IcebergCatalogConfig.builder
           .catalogImpl(ICEBERG_CATALOG_IMPL)
           .catalogName("glue_database_name")
           .catalogOptions(
             Map(
               "table-override.write.metadata.path" -> 
"s3://iceberg-metadata/schema/table/"
             ).asJava
           )
           .build
   ```
   
   Also works:
   
   ```
         import org.apache.xtable.iceberg.IcebergCatalogConfig
   
         val icebergCatalogConfig: IcebergCatalogConfig = 
IcebergCatalogConfig.builder
           .catalogImpl(ICEBERG_CATALOG_IMPL)
           .catalogName("glue_database_name")
           .catalogOptions(
             Map(
               "glue.skip-name-validation" -> "true",
             ).asJava
           )
           .build
   ```
   
   I tried using `table-override.glue.skip-name-validation` but it does not 
work as well.
   
   Apache XTable 
[discussion](https://github.com/apache/incubator-xtable/discussions/475).
   


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