junmuz opened a new pull request, #9549:
URL: https://github.com/apache/paimon/pull/9549
### Purpose
- Add a new SparkCatalog option disable-create-table-in-default-db
(default false) that, when enabled, prevents the default database from being
auto-created during catalog initialization and blocks CREATE TABLE statements
targeting the default database. This is similar to
[FlinkCatalogOption](https://paimon.apache.org/docs/master/maintenance/configurations/#flinkcatalogoptions)
- Works with both the standard default database and custom default
databases configured via defaultDatabase
### Tests
- [ ] testDisableCreateTableInDefaultDb — verifies CREATE TABLE in default
is rejected; creating databases and tables in non-default namespaces still
works; inserted data is readable
- [ ] testDisableCreateTableWithCustomDefaultDb — verifies the guard works
when defaultDatabase is set to a custom value
- [ ] testDefaultDatabaseNotCreatedWhenDisabled — verifies the default
database is not auto-created during catalog initialization
--
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]