-
Notifications
You must be signed in to change notification settings - Fork 13.8k
[FLINK-17538][hbase] Refactor flink-hbase connector structure #12102
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
Conversation
|
cc @leonardBang |
|
Thanks a lot for your contribution to the Apache Flink project. I'm the @flinkbot. I help the community Automated ChecksLast check on commit 5e6e8df (Tue May 12 15:53:12 UTC 2020) Warnings:
Mention the bot in a comment to re-run the automated checks. Review Progress
Please see the Pull Request Review Guide for a full explanation of the review process. DetailsThe 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 commandsThe @flinkbot bot supports the following commands:
|
JingsongLi
left a comment
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.
Looks good to me. Left some minor comments.
And InputFormatForTestTable should extends HBaseInputFormat.
docs/dev/table/connect.md
Outdated
| | Apache Kafka | 0.11 | `flink-connector-kafka-0.11` | [Download](https://repo.maven.apache.org/maven2/org/apache/flink/flink-sql-connector-kafka-0.11{{site.scala_version_suffix}}/{{site.version}}/flink-sql-connector-kafka-0.11{{site.scala_version_suffix}}-{{site.version}}.jar) | | ||
| | Apache Kafka | 0.11+ (`universal`) | `flink-connector-kafka` | [Download](https://repo.maven.apache.org/maven2/org/apache/flink/flink-sql-connector-kafka{{site.scala_version_suffix}}/{{site.version}}/flink-sql-connector-kafka{{site.scala_version_suffix}}-{{site.version}}.jar) | | ||
| | HBase | 1.4.3 | `flink-hbase` | [Download](https://repo.maven.apache.org/maven2/org/apache/flink/flink-hbase{{site.scala_version_suffix}}/{{site.version}}/flink-hbase{{site.scala_version_suffix}}-{{site.version}}.jar) | | ||
| | HBase | 1.4.3 | `flink-connector-hbase` | [Download](https://repo.maven.apache.org/maven2/org/apache/flink/flink-connector-hbase{{site.scala_version_suffix}}/{{site.version}}/flink-connector-hbase{{site.scala_version_suffix}}-{{site.version}}.jar) | |
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.
HBase -> Apache HBase?
| * The HBaseLookupFunction is a standard user-defined table function, it can be used in tableAPI | ||
| * and also useful for temporal table join plan in SQL. | ||
| */ | ||
| @Internal |
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.
Have testHBaseLookupFunction, do we need expose this?
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.
The testHBaseLookupFunction is a temporary solution when this test was introduced, because temporal join is not supported at that time. I will refactor the tests in the next pull request. So I think we don't need to expose this class.
(1) rename flink-hbase module to flink-connector-hbase (2) Move interfaces and classes to org.apache.flink.connector.hbase (3) Keep ancient TableInputFormat in old package and mark deprecated (4) Restructure classes into sub-packages (5) Update documentations This closes apache#12102
(1) rename flink-hbase module to flink-connector-hbase (2) Move interfaces and classes to org.apache.flink.connector.hbase (3) Keep ancient TableInputFormat in old package and mark deprecated (4) Restructure classes into sub-packages (5) Update documentations This closes apache#12102
|
Tests are passed in my Azure: https://dev.azure.com/imjark/Flink/_build/results?buildId=76&view=results Except the |
What is the purpose of the change
This pull request refactor flink-hbase connector structure and make it align with others in connector family.
Brief change log
org.apache.flink.addons.hbaseintoorg.apache.flink.connector.hbase.TableInputFormatin the original place and deprecate it.source,sink,options.flink-connector-hbase.Verifying this change
This change is already covered by existing tests.
Does this pull request potentially affect one of the following parts:
@Public(Evolving): noDocumentation