-
Notifications
You must be signed in to change notification settings - Fork 169
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-30702] Add Elasticsearch dialect #136
base: main
Are you sure you want to change the base?
Conversation
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.
Overall, everything seems to be fine.
However, I suggest changing the module name to "flink-connector-jdbc-elasticsearch."
I still have some doubts about:
- whether this should be part of the Elasticsearch connector: "https://github.com/apache/flink-connector-elasticsearch."
- the use of trial version
The recent refactor makes this feasible, as you only need to import jdbc-core.
@1996fanrui, what do you think?
@RocMarshal, could you take a look as well?
Hi! @1996fanrui @RocMarshal Any thoughts? |
Sorry, I'm not familiar with jdbc and elasticserarch connector. |
<dependency> | ||
<groupId>org.elasticsearch.plugin</groupId> | ||
<artifactId>x-pack-sql-jdbc</artifactId> | ||
<version>${elasticsearch.version}</version> | ||
<scope>provided</scope> | ||
</dependency> |
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.
- According to https://discuss.elastic.co/t/the-documentation-does-not-seem-to-document-the-minimum-jdk-runtime-requirement-for-org-elasticsearch-plugin-x-pack-sql-jdbc/372078/3?u=linghengqian and The documentation does not seem to document the minimum JDK runtime requirement for
org.elasticsearch.plugin:x-pack-sql-jdbc
elastic/elasticsearch#119924 , the committer of ElasticSearch pointed out thatorg.elasticsearch.plugin:x-pack-sql-jdbc
is mainly used inside ElasticSearch. It is not suitable for scenarios including Flink.
I don't understand. The plugin runs inside Elasticsearch so it uses the JVM provided by Elasticsearch.
It's not meant to be reused anywhere else.
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.
No sorry. I was wrong for this jar.
The PR adds Elasticsearch dialect.
Important facts:
x-pack-sql-jdbc
dependency is on Elastic license which is not compatible with Apache license. Therefore:x-pack-sql-jdbc
hasprovided
scope.This PR replaces #67. Due to recent refactoring it was easier to create a new PR.