PiotrAndrzejewsky opened a new pull request, #14904:
URL: https://github.com/apache/gravitino/pull/14904
### What changes were proposed in this pull request?
- Added DDL initialization SQL scripts for Iceberg JDBC catalog metadata
tables (`iceberg_tables` with Iceberg V1 view support and
`iceberg_namespace_properties`) for MySQL, PostgreSQL, and H2 under `scripts/`.
- Registered `iceberg-jdbc-schema-*.sql` script pattern in
`TestSQLScripts.java` so script tests validate naming conventions.
- Updated documentation in `docs/iceberg-rest-service.md` and
`docs/lakehouse-iceberg-catalog.md` with instructions and command examples for
manually executing initialization scripts when `jdbc-initialize` is disabled or
running in restricted DML environments.
### Why are the changes needed?
In secured database environments, application service users often only hold
DML permissions and cannot execute DDL statements (or multiple JDBC catalogs
are used where `jdbc-initialize=true` may not automatically initialize tables).
Users need explicit DDL scripts to provision Iceberg metadata tables ahead of
time.
Fixes #9208
### Does this PR introduce _any_ user-facing change?
No API changes. Users now have ready-to-run DDL scripts in
`${GRAVITINO_HOME}/scripts/{mysql,postgresql,h2}/` to initialize metadata
tables for Iceberg JDBC backend.
### How was this patch tested?
- `./gradlew :core:coreH2Test --tests
"org.apache.gravitino.storage.TestSQLScripts" --max-workers=4`
- `./gradlew :docs:build --max-workers=4`
- `./gradlew spotlessCheck --max-workers=4`
- `./gradlew rat --max-workers=4`
--
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]