Skip to content

[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

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

singhpk234
Copy link
Collaborator

@singhpk234 singhpk234 commented Apr 15, 2025

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

  • Add SQL Script for user to create the Polaris tables
  • Add JDBC module
    - [within extensions package or polaris-core/relational-jdbc ?]
    - Add JDBC Query Generator
    - Add Models
    - Add JDBC Base Persistence Impl E2E
  • Plumb JDBC module to Quarkus admin / server
  • Update Docker and Get Started [TBD]

@github-project-automation github-project-automation bot moved this to PRs In Progress in Basic Kanban Board Apr 15, 2025
@singhpk234 singhpk234 force-pushed the feature/integrate-jdbc-to-quarkus branch from f5408af to 3efc11a Compare April 15, 2025 16:13
Copy link
Contributor

@dimas-b dimas-b left a 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

return List.of(
new TestResourceEntry(
PostgresRelationalJdbcLifeCycleManagement.class,
Map.of(INIT_SCRIPT, "org/apache/polaris/admintool/relational-jdbc/init.sql")));
Copy link
Contributor

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).

Copy link
Collaborator Author

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 !

Copy link
Collaborator Author

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,

@singhpk234 singhpk234 force-pushed the feature/integrate-jdbc-to-quarkus branch 2 times, most recently from 6d6dcbd to e701628 Compare April 22, 2025 05:18
@singhpk234 singhpk234 force-pushed the feature/integrate-jdbc-to-quarkus branch from e701628 to 78da259 Compare April 22, 2025 06:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants