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

[FLINK-17537][connectors / jdbc] Refactor flink-jdbc connector structure #12036

Merged
merged 1 commit into from May 13, 2020

Conversation

leonardBang
Copy link
Contributor

What is the purpose of the change

  • This pull request refactor flink-jdbc connector structure and make it align with others in connector family. I split the PR to two commits to keep them clear enough.

Brief change log

commit: 6aff2b5

(1) Use Jdbc instead of JDBC;
(2) Move interfaces and classes to org.apache.flink.connector.jdbc;
(3) Keep ancient JDBCOutputFormat, JDBCInputFormat and ParameterValuesProvider in old package;
(4) Add tests/ITCase for ancient Classes and new classes.

commit: 173ded8

(1) Rename flink-jdbc module to flink-connector-jdbc;
(2) Update docs.

Verifying this change

  • Add tests for reserved class in old package
  • Update tests for new package

Does this pull request potentially affect one of the following parts:

  • Dependencies (does it add or upgrade a dependency): (no)
  • The public API, i.e., is any changed class annotated with @Public(Evolving): (no)
  • The serializers: (no)
  • The runtime per-record code paths (performance sensitive): ( no)
  • Anything that affects deployment or recovery: JobManager (and its components), Checkpointing, Yarn/Mesos, ZooKeeper: (no)
  • The S3 file system connector: (no)

Documentation

  • Does this pull request introduce a new feature? (no)
  • If yes, how is the feature documented? (not applicable / docs / JavaDocs / not documented)

@flinkbot
Copy link
Collaborator

flinkbot commented May 8, 2020

Thanks a lot for your contribution to the Apache Flink project. I'm the @flinkbot. I help the community
to review your pull request. We will use this comment to track the progress of the review.

Automated Checks

Last check on commit 173ded8 (Fri May 08 10:15:17 UTC 2020)

Warnings:

  • 2 pom.xml files were touched: Check for build and licensing issues.

Mention the bot in a comment to re-run the automated checks.

Review Progress

  • ❓ 1. The [description] looks good.
  • ❓ 2. There is [consensus] that the contribution should go into to Flink.
  • ❓ 3. Needs [attention] from.
  • ❓ 4. The change fits into the overall [architecture].
  • ❓ 5. Overall code [quality] is good.

Please see the Pull Request Review Guide for a full explanation of the review process.


The Bot is tracking the review progress through labels. Labels are applied according to the order of the review items. For consensus, approval by a Flink committer of PMC member is required Bot commands
The @flinkbot bot supports the following commands:

  • @flinkbot approve description to approve one or more aspects (aspects: description, consensus, architecture and quality)
  • @flinkbot approve all to approve all aspects
  • @flinkbot approve-until architecture to approve everything until architecture
  • @flinkbot attention @username1 [@username2 ..] to require somebody's attention
  • @flinkbot disapprove architecture to remove an approval you gave earlier

@fpompermaier
Copy link
Contributor

Just two notes: since you are refactoring the entire JDBC connector I have collected 2 observations from the other PR I have opened:

Copy link
Member

@wuchong wuchong left a comment

Choose a reason for hiding this comment

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

Thanks fro the contribution @leonardBang . I left some comments.

@leonardBang
Copy link
Contributor Author

Thanks @faisalmoeen and @wuchong ‘s notes and comments.
I'll update the PR soon.
Hi, @fpompermaier For your first note about StreamITCase.clear() I‘ll skip too because FLIP-84 is not ready now(but should be soon). For the second note, this PR will try not to modify JDBCDDialect.java and keep the PR clean and I think the JDBC Dialect need a better design too but not in this time(It will be a public API and need disscuss and design and even a FLIP from my unserstanding)

@flinkbot
Copy link
Collaborator

flinkbot commented May 8, 2020

CI report:

Bot commands The @flinkbot bot supports the following commands:
  • @flinkbot run travis re-run the last Travis build
  • @flinkbot run azure re-run the last Azure build

@leonardBang leonardBang force-pushed the FLINK-17537 branch 4 times, most recently from 5b1c938 to b31fe9e Compare May 12, 2020 08:43
@leonardBang
Copy link
Contributor Author

squash to one commit for merge

Copy link
Member

@wuchong wuchong left a comment

Choose a reason for hiding this comment

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

Thanks for the great work. LGTM.

@wuchong
Copy link
Member

wuchong commented May 12, 2020

@flinkbot run azure

@leonardBang
Copy link
Contributor Author

@flinkbot run azure

(1) Use Jdbc instead of JDBC.
(2) Move interfaces and classes to org.apache.flink.connector.jdbc.
(3) Keep ancient JDBCOutputFormat, JDBCInputFormat and ParameterValuesProvider in old package.
(4) Add tests/ITCase for ancient Classes and new classes.
(5) rename flink-jdbc module to flink-connector-jdbc.
(6) update docs.
@leonardBang
Copy link
Contributor Author

rebase master to fix minor conflict
@flinkbot run azure

@wuchong
Copy link
Member

wuchong commented May 13, 2020

Merging...

@wuchong wuchong merged commit 6a6a439 into apache:master May 13, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
5 participants