diqiu50 opened a new pull request, #14802:
URL: https://github.com/apache/gravitino/pull/14802

   ### What changes were proposed in this pull request?
   
   - Keep an explicit `flink.bypass.base-url` instead of overwriting it with 
the host from `jdbc-url`.
   - For PostgreSQL, connect to `jdbc-database` (or the database in `jdbc-url`) 
and treat `default-database` as the schema Flink starts in. The inner Flink 
JDBC catalog also connects to that database.
   - Update the Flink JDBC catalog docs.
   
   ### Why are the changes needed?
   
   Flink cannot use a different database address than the Gravitino server, and 
table scans on a PostgreSQL catalog with `flink.bypass.default-database=public` 
connect to a database named `public`.
   
   Fixes #14801
   
   ### Does this PR introduce _any_ user-facing change?
   
   Yes. For PostgreSQL catalogs, `flink.bypass.default-database` now names the 
default schema and no longer overrides the connection database. 
`flink.bypass.base-url` now takes effect.
   
   ### How was this patch tested?
   
   Added unit tests in `TestPostgresqlPropertiesConverter`, 
`AbstractJdbcPropertiesConverterTestSuite` and `TestGravitinoJdbcCatalog`, and 
ran them on Flink 1.19, 1.20, 2.1 and 2.2.
   


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