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

   ### What is the purpose of the change
   
   This PR fixes issue #6535. 
   
   `SparkCatalog::initialize` accepts a `CaseInsensitiveStringMap` as the input 
and `Options.fromMap(options)` creates an `Options` with lower case keys. This 
causes problems when catalog options should be case sensitive. For example, the 
`jdbc.socketFactory` option will be passed to the PostgreSQL JDBC driver and 
the driver only recognizes `socketFactory`, not `socketfactory`.
   
   ### Brief change log
   
   - Use `options.asCaseSensitiveMap()` instead of directly passing `options` 
to `Options.fromMap()` in `SparkCatalog.initialize()` method to preserve 
case-sensitive option keys.
   
   ### Verifying this change
   
   This change is already covered by existing tests and is consistent with the 
pattern used in `SparkGenericCatalog.autoFillConfigurations()` method.
   
   ### Does this pull request potentially affect one of the following parts:
   
   - Dependencies (does it add or upgrade a dependency): no
   - The public API: no
   - The schema: no
   - The default values of configurations: no
   - The wire protocol: no
   - The REST API: no
   
   ### Documentation
   
   - Does this pull request introduce a new feature? no


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