-
Notifications
You must be signed in to change notification settings - Fork 171
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enable eclipselink for metastore #47
Conversation
I think you created a circular dependency between |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks like a good idea to me to have eclipselink available by default (even if not enabled). It would simplify the life of our users.
@takidau @dennishuo @collado-mike what do you think guy about shipping eclipselink extension by default ?
+1 to enable eclipselink by default since that is more closer to what the users will choose to use. |
+1, having it ready-to-run out of the box will be nice |
@MonkeyCanCode Can you please fix the branchs conflicts? |
This is completed. |
@MonkeyCanCode Edit: Never mind, you can actually build using runtimeOnly. |
Without adding that, it will fail on the test:
|
@MonkeyCanCode I've edit my comment, you are right |
Thanks for checking. |
I think we should treat changing the default metastore manager as a separate effort -- we will have to make changes to the docs, and we should also consider add more test coverage for eclipse-link before doing that. Besides the change for the default metastore manager, this PR LGTM |
This will not be enough to use eclipselink out of box because this code is expecting a resource from inside the class path instead of a local file:
|
So with this line, it will try to read config from https://github.com/polaris-catalog/polaris/blob/main/polaris-service/src/main/resources/META-INF. Then back to the change for the following:
If you uncommented the eclipse-link (and commented out the in-memory one), it will then use h2 for eclipse-link defined in the default config. To use a diff config file under resource dir, you can then do following (assuming you created a new persistence file named
As yes, as of now, the current code doesn't support reading config outside the resources dir. I had created #45 earlier for asking how to load this file outside. However, with current code, that doesn't appear seems to be possible. |
Description
This PR will enable eclipselink by default with H2 as backend metastore. This is based off changes from #41.
Type of change
Please delete options that are not relevant.
How Has This Been Tested?
This had being tested locally. With the changes in the PR, an end-user will now be able to use eclipselink for the metastore (h2 for now). To verified that is working, I verified this by following:
Test Configuration:
Checklist:
Please delete options that are not relevant.