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

Split athena-jdbc into three separated connectors #662

Merged
merged 12 commits into from
Feb 4, 2022
Merged

Conversation

kparwal
Copy link
Contributor

@kparwal kparwal commented Jan 24, 2022

athena-jdbc used to hold code for the postgresql, mysql, and redshift connectors. This refactor splits out those three while keeping the shared generic code in athena-jdbc.

A single lambda can no longer multiplex between the three supported jdbc connectors. However, new handlers with Mux in each of the new separated connectors can still multiplex between databases of the same type (e.g. MySqlMuxCompositeHandler can multiplex between several MySql instances, but not a postgres instance).

Some TODOs:

  • Ensure unit/integ tests are successful
  • Fix POMs to resolve overlapping classes defined warnings
  • Edit READMEs
  • Rebase commits to be more readable

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

athena-mysql/README.md Outdated Show resolved Hide resolved
@kparwal kparwal marked this pull request as ready for review January 25, 2022 21:47
@kparwal kparwal changed the title [WIP] Split athena-jdbc into three separated connectors Split athena-jdbc into three separated connectors Jan 28, 2022
@kparwal kparwal force-pushed the split-jdbc branch 2 times, most recently from 6f587b7 to a8f070b Compare February 1, 2022 16:42
athena-mysql/README.md Outdated Show resolved Hide resolved
athena-mysql/README.md Outdated Show resolved Hide resolved
athena-mysql/README.md Outdated Show resolved Hide resolved
@kparwal kparwal force-pushed the split-jdbc branch 3 times, most recently from 794502c to 1362097 Compare February 4, 2022 17:01
Remove static database configurations in favor of connectors injecting their own factories/connection details.
@@ -92,7 +92,7 @@ protected JdbcMetadataHandler()

Copy link
Contributor

Choose a reason for hiding this comment

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

Can we get rid of the constructor above? the super(null) is obfuscating metrics on the engine side.

@burhan94 burhan94 merged commit 2ebe76f into master Feb 4, 2022
@burhan94 burhan94 deleted the split-jdbc branch September 12, 2023 16:33
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.

3 participants