-
Notifications
You must be signed in to change notification settings - Fork 6
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 version update #88
Conversation
Where are we setting the new flink version ( |
Fixed the code. |
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.
Could you please verify the dependency by ./gradlew :runners:flink:1.16:dependenies? I want to make sure we are using our flink versions indeed. Thanks.
runners/flink/flink_runner.gradle
Outdated
/* Flink 1.15 shades all remaining scala dependencies and therefor does not depend on a specific version of Scala anymore. | ||
* Flink 1.16 onwards, flink version is 11600.* and does not depend on a specific version of Scala anymore. | ||
*/ | ||
if (flink_version.compareTo("1.15") >= 0 || flink_version.compareTo("11600.3") >= 0) { |
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.
I'm curious about this change: is it 11600.3 >= 1.15? If so, do we need the second part of the condition?
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.
@xinyuiscool Would it be better to have an indirection say if the flink_version
is 1.16
then use the corresponding linkedin_flink_version
which is 11600.3
through a map or something. That way, when a new version is released in LinkedIn, we just need to change in the mapping table. Also this way even if LinkedIn Flink versioning scheme changes to Semantic versioning with its own major.minor.patch
version, it won't be affected by the comparison operator.
Verified the changes locally. `+--- org.apache.beam:beam-vendor-grpc-1_48_1:0.1 () (c) - dependency constraint (n) - Not resolved (configuration is not meant to be resolved) A web-based, searchable dependency report is available by adding the --scan option. Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0. You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins. See https://docs.gradle.org/7.5.1/userguide/command_line_interface.html#sec:command_line_warnings BUILD SUCCESSFUL in 24s |
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.
LGTM!
Summary
Fix the Beam build issue to run against latest Flink version.
Testing
Tested for all versions of Flink and now Beam is able to fetch the latest Flink artifacts.