omarsmak opened a new pull request #3162:
URL: https://github.com/apache/iceberg/pull/3162


   Currently if the user has set both configs in Hive 
`iceberg.catalog.<catalog_name\>.type=hive|hadoop` and 
`iceberg.catalog.<catalog_name\>.catalog-impl=CustomCatalog`, Iceberg will 
regardless use the `type` to perform some operations in `HiveIcebergMetaHook`  
that may introduce inconsistencies that are incompatible with the set custom 
catalog. For example, if type is set to `hive` and we have `catalog-impl` set 
to `GlueCatalog`,`HiveIcebergMetaHook` will perform operations based on `hive` 
catalog which are incompatible with the custom catalog `GlueCatalog`.
   In order to mediate the issue, in this PR I am returning `null` in 
`iceberg.catalog.<catalog_name\>.type` in case we have 
`iceberg.catalog.<catalog_name\>.catalog-impl` is set in order to avoid such 
cases as described above. 
   
   *Note:* The behavior in regards to legacy configs is remained unchanged. 
   


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