-
Notifications
You must be signed in to change notification settings - Fork 223
[JDBC] Part3: Plumb JDBC module to quarkus #1371
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
base: main
Are you sure you want to change the base?
[JDBC] Part3: Plumb JDBC module to quarkus #1371
Conversation
f5408af
to
3efc11a
Compare
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.
Posting some comments proacively
...main/java/org/apache/polaris/extension/persistence/relational/jdbc/DatasourceOperations.java
Outdated
Show resolved
Hide resolved
...main/java/org/apache/polaris/extension/persistence/relational/jdbc/DatasourceOperations.java
Outdated
Show resolved
Hide resolved
return List.of( | ||
new TestResourceEntry( | ||
PostgresRelationalJdbcLifeCycleManagement.class, | ||
Map.of(INIT_SCRIPT, "org/apache/polaris/admintool/relational-jdbc/init.sql"))); |
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.
How can this work in user's env. when we do not know the database type beforehand?
If this is only for testing, I believe it would be nicer to embed the SQL into java code (e.g. as """"
strings).
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.
This is a test, just copied what we did Eclipse link, let me make this a inline Set of commands !
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.
I checked the present API apparantely we can just pass init script not a set of commands to be executed.
public SELF withInitScript(String initScriptPath) {
this.initScriptPaths = new ArrayList();
this.initScriptPaths.add(initScriptPath);
return (SELF)(this.self());
}
I am not sure if I missed something, please let me know,
...va/org/apache/polaris/extension/persistence/relational/jdbc/JdbcMetaStoreManagerFactory.java
Outdated
Show resolved
Hide resolved
6d6dcbd
to
e701628
Compare
e701628
to
78da259
Compare
About the change
This is part 3 of Bigger change #649
since part 2 is yet to be merged, and based on decision on part2 on how we wanna model relam, this PR depends. This PR contains both part 2 and part 3 commit. This PR models realms as Seperate schema (Discuss pending : https://lists.apache.org/thread/kvt3gd29hyxlhnwxr9b674s555jlvjjs) and how can this be plumbed to Polaris Admin and Service.
Complete Tasks break down
- [within extensions package or polaris-core/relational-jdbc ?]
- Add JDBC Query Generator
- Add Models
- Add JDBC Base Persistence Impl E2E