mircodee opened a new pull request, #4010:
URL: https://github.com/apache/paimon/pull/4010

   <!-- Please specify the module before the PR name: [core] ... or [flink] ... 
-->
   
   ### Purpose
   1. Fix the bug linking Paimon to Hive's Catalog:
   - The key of the cached item has not overridden the HashCode and Equals 
methods.
   - The value of the cached item, that is, when creating the Hive client, the 
UGI information was not passed.
   
   2. Add Paimon's options as the cache key to simplify user usage。
   ```
   DROP CATALOG paimon_thrift;
   CREATE EXTERNAL CATALOG `paimon_thrift`
   PROPERTIES (
     "type"  =  "paimon",
     "paimon.catalog.type"  =  "hive",
     "paimon.catalog.warehouse"  =  "hdfs://localhost:9000/user/hive/warehouse/"
     "hive.metastore.uris"  =  "thrift://localhost:9083",
     'paimon.option.client-pool-cache.keys'='ugi,conf:*'
   );
   set catalog paimon_thrift;
   show databases;
   ```
   
   ### Tests
   1. Fix before
   
![image](https://github.com/user-attachments/assets/270eef37-a825-4d93-ae6c-cacc1933b83c)
   
   2. Fix after
   
![image](https://github.com/user-attachments/assets/56decece-7891-46fc-9823-97aca4818a2b)
   
   


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

Reply via email to