You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@streampark.apache.org by "shangeyao (via GitHub)" <gi...@apache.org> on 2026/06/23 08:50:11 UTC
[PR] [Feature] Support Apache Flink 2.x (2.0, 2.1, 2.2) [streampark]
shangeyao opened a new pull request, #4368:
URL: https://github.com/apache/streampark/pull/4368
<!--
Thank you for contributing to StreamPark! Please make sure that your code changes
are covered with tests. And in case of new features or big changes
remember to adjust the documentation.
## Contribution Checklist
- If this is your first time, please read our contributor guidelines: [Submit Code](https://streampark.apache.org/community/submit_guide/submit_code).
- Make sure that the pull request corresponds to a [GITHUB issue](https://github.com/apache/streampark/issues).
- Name the pull request in the form "[Feature] Title of the pull request", where *Feature* can be replaced by `Hotfix`, `Bug`, etc.
- Fill out the template below to describe the changes contributed by the pull request. That will give reviewers the context they need to do the review.
- If the PR is unfinished, add `[WIP]` in your PR title, e.g., `[WIP][Feature] Title of the pull request`.
-->
## What changes were proposed in this pull request
Issue Number: close #4367
This pull request adds support for Apache Flink 2.x series (2.0, 2.1, 2.2) to StreamPark.
## Brief change log
- Extend `FlinkVersion.scala` to recognize Flink 2.x versions
- Create new shims modules: `streampark-flink-shims_flink-2.0`, `streampark-flink-shims_flink-2.1`, `streampark-flink-shims_flink-2.2`
- Migrate to Java DataStream API (Scala DataStream API removed in Flink 2.x)
- Handle `ParameterTool` relocation from `org.apache.flink.api.java.utils` to `org.apache.flink.util`
- Implement Flink 2.1 Model API (`createModel`, `fromCall`, etc.)
- Implement Flink 2.2 `FunctionDescriptor` and Materialized Tables APIs
- Update console-service `EnvInitializer.java` regex to match 2.x shims JARs
- Add 2.0/2.1/2.2 shims JAR dependencies to console-service `pom.xml`
## Verifying this change
This change is already covered by existing tests, such as:
- All shims modules (1.12-1.20 + 2.0-2.2) compile successfully
- Unit tests in `streampark-flink-shims-test` pass
- Console service compiles successfully
## Does this pull request potentially affect one of the following parts
- Dependencies (does it add or upgrade a dependency): yes (adds Flink 2.0.2, 2.1.2, 2.2.1 dependencies)
- The `FlinkVersion.scala` version detection logic: yes
- The shims module structure: yes (adds 3 new modules)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@streampark.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [Feature] Support Apache Flink 2.x (2.0, 2.1, 2.2) [streampark]
Posted by "sonarqubecloud[bot] (via GitHub)" <gi...@apache.org>.
sonarqubecloud[bot] commented on PR #4368:
URL: https://github.com/apache/streampark/pull/4368#issuecomment-4791502753
## [](https://sonarcloud.io/dashboard?id=apache_incubator-streampark&pullRequest=4368) **Quality Gate failed**
Failed conditions
 [72.1% Duplication on New Code](https://sonarcloud.io/component_measures?id=apache_incubator-streampark&pullRequest=4368&metric=new_duplicated_lines_density&view=list) (required ≤ 3%)
<!-- sqra:qg_revision=d0a1fd0e7c36503c1f3427b4478af84e3dd0d3d3f31df02515047803fa915b42 -->
<!-- sqra-placement-anchor -->
[See analysis details on SonarQube Cloud](https://sonarcloud.io/dashboard?id=apache_incubator-streampark&pullRequest=4368)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@streampark.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [Feature] Support Apache Flink 2.x (2.0, 2.1, 2.2) [streampark]
Posted by "sonarqubecloud[bot] (via GitHub)" <gi...@apache.org>.
sonarqubecloud[bot] commented on PR #4368:
URL: https://github.com/apache/streampark/pull/4368#issuecomment-4780003085
## [](https://sonarcloud.io/dashboard?id=apache_incubator-streampark&pullRequest=4368) **Quality Gate failed**
Failed conditions
 [72.6% Duplication on New Code](https://sonarcloud.io/component_measures?id=apache_incubator-streampark&pullRequest=4368&metric=new_duplicated_lines_density&view=list) (required ≤ 3%)
<!-- sqra:qg_revision=0085bb8a22b32517d73af2ff2ab83ea4d748c4793d9b32b29a0caa5349a8f7a3 -->
<!-- sqra-placement-anchor -->
[See analysis details on SonarQube Cloud](https://sonarcloud.io/dashboard?id=apache_incubator-streampark&pullRequest=4368)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@streampark.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [Feature] Support Apache Flink 2.x (2.0, 2.1, 2.2) [streampark]
Posted by "sonarqubecloud[bot] (via GitHub)" <gi...@apache.org>.
sonarqubecloud[bot] commented on PR #4368:
URL: https://github.com/apache/streampark/pull/4368#issuecomment-4818090415
## [](https://sonarcloud.io/dashboard?id=apache_incubator-streampark&pullRequest=4368) **Quality Gate failed**
Failed conditions
 [69.6% Duplication on New Code](https://sonarcloud.io/component_measures?id=apache_incubator-streampark&pullRequest=4368&metric=new_duplicated_lines_density&view=list) (required ≤ 3%)
<!-- sqra:qg_revision=ee955c3651fc81e414e435a112391d04e645c53600349bbb8cdfa48c13c636c1 -->
<!-- sqra-placement-anchor -->
[See analysis details on SonarQube Cloud](https://sonarcloud.io/dashboard?id=apache_incubator-streampark&pullRequest=4368)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@streampark.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [Feature] Support Apache Flink 2.x (2.0, 2.1, 2.2) [streampark]
Posted by "sonarqubecloud[bot] (via GitHub)" <gi...@apache.org>.
sonarqubecloud[bot] commented on PR #4368:
URL: https://github.com/apache/streampark/pull/4368#issuecomment-4777426182
## [](https://sonarcloud.io/dashboard?id=apache_incubator-streampark&pullRequest=4368) **Quality Gate failed**
Failed conditions
 [72.6% Duplication on New Code](https://sonarcloud.io/component_measures?id=apache_incubator-streampark&pullRequest=4368&metric=new_duplicated_lines_density&view=list) (required ≤ 3%)
<!-- sqra:qg_revision=0085bb8a22b32517d73af2ff2ab83ea4d748c4793d9b32b29a0caa5349a8f7a3 -->
<!-- sqra-placement-anchor -->
[See analysis details on SonarQube Cloud](https://sonarcloud.io/dashboard?id=apache_incubator-streampark&pullRequest=4368)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@streampark.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [Feature] Support Apache Flink 2.x (2.0, 2.1, 2.2) [streampark]
Posted by "sonarqubecloud[bot] (via GitHub)" <gi...@apache.org>.
sonarqubecloud[bot] commented on PR #4368:
URL: https://github.com/apache/streampark/pull/4368#issuecomment-4779496138
## [](https://sonarcloud.io/dashboard?id=apache_incubator-streampark&pullRequest=4368) **Quality Gate failed**
Failed conditions
 [46.3% Duplication on New Code](https://sonarcloud.io/component_measures?id=apache_incubator-streampark&pullRequest=4368&metric=new_duplicated_lines_density&view=list) (required ≤ 3%)
<!-- sqra:qg_revision=3ed739f2579e50c256c30a826840894320d61e5e79b05f27f2fff07eb9ddea1e -->
<!-- sqra-placement-anchor -->
[See analysis details on SonarQube Cloud](https://sonarcloud.io/dashboard?id=apache_incubator-streampark&pullRequest=4368)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@streampark.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [Feature] Support Apache Flink 2.x (2.0, 2.1, 2.2) [streampark]
Posted by "sonarqubecloud[bot] (via GitHub)" <gi...@apache.org>.
sonarqubecloud[bot] commented on PR #4368:
URL: https://github.com/apache/streampark/pull/4368#issuecomment-4791491256
## [](https://sonarcloud.io/dashboard?id=apache_incubator-streampark&pullRequest=4368) **Quality Gate failed**
Failed conditions
 [72.1% Duplication on New Code](https://sonarcloud.io/component_measures?id=apache_incubator-streampark&pullRequest=4368&metric=new_duplicated_lines_density&view=list) (required ≤ 3%)
<!-- sqra:qg_revision=d0a1fd0e7c36503c1f3427b4478af84e3dd0d3d3f31df02515047803fa915b42 -->
<!-- sqra-placement-anchor -->
[See analysis details on SonarQube Cloud](https://sonarcloud.io/dashboard?id=apache_incubator-streampark&pullRequest=4368)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@streampark.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [Feature] Support Apache Flink 2.x (2.0, 2.1, 2.2) [streampark]
Posted by "shangeyao (via GitHub)" <gi...@apache.org>.
shangeyao closed pull request #4368: [Feature] Support Apache Flink 2.x (2.0, 2.1, 2.2)
URL: https://github.com/apache/streampark/pull/4368
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@streampark.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [Feature] Support Apache Flink 2.x (2.0, 2.1, 2.2) [streampark]
Posted by "wolfboys (via GitHub)" <gi...@apache.org>.
wolfboys commented on PR #4368:
URL: https://github.com/apache/streampark/pull/4368#issuecomment-4779189820
Welcome to contribute to this PR. I'm curious—was this done with agentic coding? Which model did you use? >_<
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@streampark.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [Feature] Support Apache Flink 2.x (2.0, 2.1, 2.2) [streampark]
Posted by "sonarqubecloud[bot] (via GitHub)" <gi...@apache.org>.
sonarqubecloud[bot] commented on PR #4368:
URL: https://github.com/apache/streampark/pull/4368#issuecomment-4790974286
## [](https://sonarcloud.io/dashboard?id=apache_incubator-streampark&pullRequest=4368) **Quality Gate failed**
Failed conditions
 [72.4% Duplication on New Code](https://sonarcloud.io/component_measures?id=apache_incubator-streampark&pullRequest=4368&metric=new_duplicated_lines_density&view=list) (required ≤ 3%)
<!-- sqra:qg_revision=45c003ddf6c35d9648524faf33f7f57d062c358612dea1c58af5cdb57097d9df -->
<!-- sqra-placement-anchor -->
[See analysis details on SonarQube Cloud](https://sonarcloud.io/dashboard?id=apache_incubator-streampark&pullRequest=4368)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@streampark.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [Feature] Support Apache Flink 2.x (2.0, 2.1, 2.2) [streampark]
Posted by "sonarqubecloud[bot] (via GitHub)" <gi...@apache.org>.
sonarqubecloud[bot] commented on PR #4368:
URL: https://github.com/apache/streampark/pull/4368#issuecomment-4797280224
## [](https://sonarcloud.io/dashboard?id=apache_incubator-streampark&pullRequest=4368) **Quality Gate failed**
Failed conditions
 [69.6% Duplication on New Code](https://sonarcloud.io/component_measures?id=apache_incubator-streampark&pullRequest=4368&metric=new_duplicated_lines_density&view=list) (required ≤ 3%)
<!-- sqra:qg_revision=ee955c3651fc81e414e435a112391d04e645c53600349bbb8cdfa48c13c636c1 -->
<!-- sqra-placement-anchor -->
[See analysis details on SonarQube Cloud](https://sonarcloud.io/dashboard?id=apache_incubator-streampark&pullRequest=4368)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@streampark.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [Feature] Support Apache Flink 2.x (2.0, 2.1, 2.2) [streampark]
Posted by "sonarqubecloud[bot] (via GitHub)" <gi...@apache.org>.
sonarqubecloud[bot] commented on PR #4368:
URL: https://github.com/apache/streampark/pull/4368#issuecomment-4779210012
## [](https://sonarcloud.io/dashboard?id=apache_incubator-streampark&pullRequest=4368) **Quality Gate failed**
Failed conditions
 [51.8% Duplication on New Code](https://sonarcloud.io/component_measures?id=apache_incubator-streampark&pullRequest=4368&metric=new_duplicated_lines_density&view=list) (required ≤ 3%)
<!-- sqra:qg_revision=7d22a439fa8c269dd6fb3d509ce71242b9a28821fc7d676edc0d6e604a6806b2 -->
<!-- sqra-placement-anchor -->
[See analysis details on SonarQube Cloud](https://sonarcloud.io/dashboard?id=apache_incubator-streampark&pullRequest=4368)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@streampark.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [Feature] Support Apache Flink 2.x (2.0, 2.1, 2.2) [streampark]
Posted by "sonarqubecloud[bot] (via GitHub)" <gi...@apache.org>.
sonarqubecloud[bot] commented on PR #4368:
URL: https://github.com/apache/streampark/pull/4368#issuecomment-4779729220
## [](https://sonarcloud.io/dashboard?id=apache_incubator-streampark&pullRequest=4368) **Quality Gate failed**
Failed conditions
 [72.6% Duplication on New Code](https://sonarcloud.io/component_measures?id=apache_incubator-streampark&pullRequest=4368&metric=new_duplicated_lines_density&view=list) (required ≤ 3%)
<!-- sqra:qg_revision=0085bb8a22b32517d73af2ff2ab83ea4d748c4793d9b32b29a0caa5349a8f7a3 -->
<!-- sqra-placement-anchor -->
[See analysis details on SonarQube Cloud](https://sonarcloud.io/dashboard?id=apache_incubator-streampark&pullRequest=4368)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@streampark.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org