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

[INLONG-4659][Sort] Support field routing for Elasticsearch connector #4849

Merged
merged 16 commits into from
Jul 7, 2022

Conversation

Oneal65
Copy link
Contributor

@Oneal65 Oneal65 commented Jul 3, 2022

Prepare a Pull Request

Motivation

Support field routing for ElasticSearch connector

Modifications

according to https://github.com/apache/flink/pull/14493/files
and https://github.com/apache/flink/tree/release-1.13.2-rc2

modify the whole sort-connector-elasticsearch6 and sort-connector-elasticsearch7 code
and add sort-connector-elasticsearch-base module

Background, Design ideas and others

Background: the field routing concept, there are some URLs:
https://www.cnblogs.com/bonelee/p/6055340.html
https://www.cnblogs.com/Rawls/p/10269192.html

Design ideas:

the routing function has been supported By ElasticSearch. What we should do is add this feature to the connector.

the main logic is in RoutingExtractor class

this PR is refer to:

https://github.com/apache/flink/pull/14493/files
https://github.com/apache/flink/tree/release-1.13.2-rc2

Verifying this change

  • This change added tests and can be verified as follows:

    Elasticsearch6DynamicSinkITCase.java
    Elasticsearch7DynamicSinkITCase.java
    TestContext.java

Documentation

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

@GanfengTan
Copy link
Contributor

1.Multiple module titles must correspond.
2.Commit history error.
image

@dockerzhang
Copy link
Contributor

@Oneal65 there are UTs failed, please check again.

@healchow healchow changed the title [INLONG-4659][Sort] Support field routing for ElasticSearch connector [INLONG-4659][Sort] Support field routing for Elasticsearch connector Jul 4, 2022
@GanfengTan
Copy link
Contributor

1.The problem background needs to be added.
2.Design ideas and schemes are necessary.
3.Add the copied source code to the LICENSE.

@Oneal65
Copy link
Contributor Author

Oneal65 commented Jul 5, 2022

1.The problem background needs to be added. 2.Design ideas and schemes are necessary. 3.Add the copied source code to the LICENSE.

@GanfengTan Now, you can see it In Background, Design ideas and others

@Oneal65
Copy link
Contributor Author

Oneal65 commented Jul 5, 2022

@Oneal65 there are UTs failed, please check again.

@dockerzhang DONE

@dockerzhang
Copy link
Contributor

please unify all the dependency versions for the elasticsearch6 and elasticsearch7

@Oneal65
Copy link
Contributor Author

Oneal65 commented Jul 7, 2022

please unify all the dependency versions for the elasticsearch6 and elasticsearch7

@dockerzhang done

@dockerzhang dockerzhang merged commit 2fac488 into apache:master Jul 7, 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.

[Feature][Sort] Support routing field for Elasticsearch connector
7 participants