freesinger opened a new pull request, #10819:
URL: https://github.com/apache/gravitino/pull/10819
<!--
1. Title: [#<issue>] <type>(<scope>): <subject>
Examples:
- "[#123] feat(operator): Support xxx"
- "[#233] fix: Check null before access result in xxx"
- "[MINOR] refactor: Fix typo in variable name"
- "[MINOR] docs: Fix typo in README"
- "[#255] test: Fix flaky test NameOfTheTest"
Reference: https://www.conventionalcommits.org/en/v1.0.0/
2. If the PR is unfinished, please mark this PR as draft.
-->
### What changes were proposed in this pull request?
This PR adds an opt-in configuration to automatically create the relational
entity store schema on startup when using non-embedded databases.
A new config key is introduced and, when enabled, the server will attempt to
run the corresponding schema initialization script if the schema does not exist.
### Why are the changes needed?
This improves the developer and test experience by reducing manual setup
steps when running Gravitino with an external relational database.
Fix: N/A
### Does this PR introduce _any_ user-facing change?
Yes.
New configuration property:
gravitino.entity.store.relational.autoCreateSchema (default: false).
### How was this patch tested?
I recommend running core unit tests and a quick startup smoke test against a
MySQL/PostgreSQL instance:
```bash
./gradlew :core:test
# then start server with relational store + autoCreateSchema=true
```
--
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]