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

   ### Purpose
   1. 修复Paimon的链接Hive的Catalog的BUG:
   - Cached的Key未重写HashCode和Equels方法。
   - Cached的Value,也就是创建Hive的Client的时候,未传递UGI信息。
   
   2. 新增将Paimon的Options作为缓存的Key,降低用户使用复杂程度。
   ```
   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. 问题复现
   
![image](https://github.com/user-attachments/assets/0c6dfa52-db2c-4eca-9c6e-0a22a06576ff)
   
   2. 问题修复
   
![image](https://github.com/user-attachments/assets/486d5da5-101d-4496-b07e-eb16b5f9e4b5)
   
   


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