Skip to content
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

[improve][connector] JDBC sink: allow any jdbc driver #17951

Merged
merged 1 commit into from
Oct 11, 2022

Conversation

nicoloboschi
Copy link
Contributor

Motivation

At the moment in the JDBC core module there's a mapping between JDBC url and the driver class name. This limits the possibility to take the JDBC core and put a different JDBC driver. Also the class name driver initialization is not helpful at all since the first time the JDBC api will try to find a driver is just in the next line while creating a new connection.

Modifications

  • Removed the mapping and the class eager initialization. If the JDBC Api is not able to find a driver for the given url, an exception will be raised anyway.

Documentation

  • doc
  • doc-required
  • doc-not-needed
  • doc-complete

@nicoloboschi nicoloboschi added this to the 2.12.0 milestone Oct 9, 2022
@nicoloboschi
Copy link
Contributor Author

/pulsarbot rerun-failure-checks

Copy link
Contributor

@eolivelli eolivelli left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@eolivelli eolivelli merged commit 5c31c9a into apache:master Oct 11, 2022
nicoloboschi added a commit to datastax/pulsar that referenced this pull request Oct 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants