You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@iceberg.apache.org by GitBox <gi...@apache.org> on 2022/02/18 04:04:55 UTC
[GitHub] [iceberg] openinx opened a new pull request #4157: Flink: Support configurable Scala version.
openinx opened a new pull request #4157:
URL: https://github.com/apache/iceberg/pull/4157
As apache flink usually will release a version with two scala version, but we apache iceberg only support scala 2.12 now. So here I publish a PR to support configurable scala version for building flink iceberg module.
We can use the following command to build flink runtime modules for scala 2.12:
```bash
./gradlew clean build -x test -DflinkVersions=1.12,1.13,1.14 \
-DscalaVersion=2.12 \
-DknownScalaVersions=2.12 \
-x javadoc -Pquick \
-DsparkVersions= -DhiveVersions=
```
Their packaged jar are looks like:
```
➜ iceberg git:(add-flink-scala-version) find flink/ | grep jar | grep v1
flink//v1.12/flink/build/libs/iceberg-flink-1.12_2.11-0.13.0-SNAPSHOT-tests.jar
flink//v1.12/flink/build/libs/iceberg-flink-1.12_2.11-0.13.0-SNAPSHOT.jar
flink//v1.12/flink/build/libs/iceberg-flink-1.12_2.11-0.13.0-SNAPSHOT-javadoc.jar
flink//v1.12/flink/build/libs/iceberg-flink-1.12_2.11-0.13.0-SNAPSHOT-sources.jar
flink//v1.12/flink/build/tmp/jar
flink//v1.12/flink/build/tmp/jar/MANIFEST.MF
flink//v1.12/flink-runtime/build/libs/iceberg-flink-runtime-1.12_2.11-0.13.0-SNAPSHOT.jar
flink//v1.12/flink-runtime/build/libs/iceberg-flink-runtime-1.12_2.11-0.13.0-SNAPSHOT-javadoc.jar
flink//v1.12/flink-runtime/build/libs/iceberg-flink-runtime-1.12_2.11-0.13.0-SNAPSHOT-tests.jar
flink//v1.12/flink-runtime/build/libs/iceberg-flink-runtime-1.12_2.11-0.13.0-SNAPSHOT-sources.jar
flink//v1.14/flink/build/libs/iceberg-flink-1.14_2.11-0.13.0-SNAPSHOT-tests.jar
flink//v1.14/flink/build/libs/iceberg-flink-1.14_2.11-0.13.0-SNAPSHOT-javadoc.jar
flink//v1.14/flink/build/libs/iceberg-flink-1.14_2.11-0.13.0-SNAPSHOT-sources.jar
flink//v1.14/flink/build/libs/iceberg-flink-1.14_2.11-0.13.0-SNAPSHOT.jar
flink//v1.14/flink/build/tmp/jar
flink//v1.14/flink/build/tmp/jar/MANIFEST.MF
flink//v1.14/flink-runtime/build/libs/iceberg-flink-runtime-1.14_2.11-0.13.0-SNAPSHOT-tests.jar
flink//v1.14/flink-runtime/build/libs/iceberg-flink-runtime-1.14_2.11-0.13.0-SNAPSHOT-javadoc.jar
flink//v1.14/flink-runtime/build/libs/iceberg-flink-runtime-1.14_2.11-0.13.0-SNAPSHOT-sources.jar
flink//v1.14/flink-runtime/build/libs/iceberg-flink-runtime-1.14_2.11-0.13.0-SNAPSHOT.jar
flink//v1.13/flink/build/libs/iceberg-flink-1.13_2.11-0.13.0-SNAPSHOT-sources.jar
flink//v1.13/flink/build/libs/iceberg-flink-1.13_2.11-0.13.0-SNAPSHOT-javadoc.jar
flink//v1.13/flink/build/libs/iceberg-flink-1.13_2.11-0.13.0-SNAPSHOT-tests.jar
flink//v1.13/flink/build/libs/iceberg-flink-1.13_2.11-0.13.0-SNAPSHOT.jar
flink//v1.13/flink/build/tmp/jar
flink//v1.13/flink/build/tmp/jar/MANIFEST.MF
flink//v1.13/flink-runtime/build/libs/iceberg-flink-runtime-1.13_2.11-0.13.0-SNAPSHOT-tests.jar
flink//v1.13/flink-runtime/build/libs/iceberg-flink-runtime-1.13_2.11-0.13.0-SNAPSHOT.jar
flink//v1.13/flink-runtime/build/libs/iceberg-flink-runtime-1.13_2.11-0.13.0-SNAPSHOT-sources.jar
flink//v1.13/flink-runtime/build/libs/iceberg-flink-runtime-1.13_2.11-0.13.0-SNAPSHOT-javadoc.jar
```
And use the following command to build flink runtime modules for scala 2.11:
```bash
./gradlew clean build -x test -DflinkVersions=1.12,1.13,1.14 \
-DscalaVersion=2.11 \
-DknownScalaVersions=2.11 \
-x javadoc -Pquick \
-DsparkVersions= -DhiveVersions=
```
The build jars are similar to the above context.
--
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@iceberg.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org
[GitHub] [iceberg] openinx commented on a change in pull request #4157: Flink: Support configurable Scala version.
Posted by GitBox <gi...@apache.org>.
openinx commented on a change in pull request #4157:
URL: https://github.com/apache/iceberg/pull/4157#discussion_r811861974
##########
File path: flink/v1.12/build.gradle
##########
@@ -17,18 +17,11 @@
* under the License.
*/
-def flinkProjects = [
- project(':iceberg-flink:iceberg-flink-1.12'),
- project(':iceberg-flink:iceberg-flink-runtime-1.12')
-]
-
-configure(flinkProjects) {
- project.ext {
- flinkVersion = '1.12.5'
- }
-}
+String flinkVersion = '1.12.5'
+String flinkMajorVersion = '1.12'
+String scalaVersion = System.getProperty("scalaVersion") != null ? System.getProperty("scalaVersion") : System.getProperty("defaultScalaVersion")
-project(':iceberg-flink:iceberg-flink-1.12') {
+project(":iceberg-flink:iceberg-flink-${flinkMajorVersion}_${scalaVersion}") {
Review comment:
PR is here: https://github.com/apache/iceberg/pull/4193
--
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@iceberg.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org
[GitHub] [iceberg] openinx commented on a change in pull request #4157: Flink: Support configurable Scala version.
Posted by GitBox <gi...@apache.org>.
openinx commented on a change in pull request #4157:
URL: https://github.com/apache/iceberg/pull/4157#discussion_r809710633
##########
File path: settings.gradle
##########
@@ -87,30 +87,30 @@ if (!flinkVersions.isEmpty()) {
}
if (flinkVersions.contains("1.12")) {
- include ':iceberg-flink:flink-1.12'
- include ':iceberg-flink:flink-runtime-1.12'
- project(':iceberg-flink:flink-1.12').projectDir = file('flink/v1.12/flink')
- project(':iceberg-flink:flink-1.12').name = 'iceberg-flink-1.12'
- project(':iceberg-flink:flink-runtime-1.12').projectDir = file('flink/v1.12/flink-runtime')
- project(':iceberg-flink:flink-runtime-1.12').name = 'iceberg-flink-runtime-1.12'
+ include ":iceberg-flink:flink-1.12_${scalaVersion}"
+ include ":iceberg-flink:flink-runtime-1.12_${scalaVersion}"
+ project(":iceberg-flink:flink-1.12_${scalaVersion}").projectDir = file('flink/v1.12/flink')
+ project(":iceberg-flink:flink-1.12_${scalaVersion}").name = "iceberg-flink-1.12_${scalaVersion}"
+ project(":iceberg-flink:flink-runtime-1.12_${scalaVersion}").projectDir = file('flink/v1.12/flink-runtime')
+ project(":iceberg-flink:flink-runtime-1.12_${scalaVersion}").name = "iceberg-flink-runtime-1.12_${scalaVersion}"
}
if (flinkVersions.contains("1.13")) {
- include ':iceberg-flink:flink-1.13'
- include ':iceberg-flink:flink-runtime-1.13'
- project(':iceberg-flink:flink-1.13').projectDir = file('flink/v1.13/flink')
- project(':iceberg-flink:flink-1.13').name = 'iceberg-flink-1.13'
- project(':iceberg-flink:flink-runtime-1.13').projectDir = file('flink/v1.13/flink-runtime')
- project(':iceberg-flink:flink-runtime-1.13').name = 'iceberg-flink-runtime-1.13'
+ include ":iceberg-flink:flink-1.13_${scalaVersion}"
+ include ":iceberg-flink:flink-runtime-1.13_${scalaVersion}"
+ project(":iceberg-flink:flink-1.13_${scalaVersion}").projectDir = file('flink/v1.13/flink')
+ project(":iceberg-flink:flink-1.13_${scalaVersion}").name = "iceberg-flink-1.13_${scalaVersion}"
+ project(":iceberg-flink:flink-runtime-1.13_${scalaVersion}").projectDir = file('flink/v1.13/flink-runtime')
+ project(":iceberg-flink:flink-runtime-1.13_${scalaVersion}").name = "iceberg-flink-runtime-1.13_${scalaVersion}"
}
if (flinkVersions.contains("1.14")) {
- include ':iceberg-flink:flink-1.14'
- include ':iceberg-flink:flink-runtime-1.14'
- project(':iceberg-flink:flink-1.14').projectDir = file('flink/v1.14/flink')
- project(':iceberg-flink:flink-1.14').name = 'iceberg-flink-1.14'
- project(':iceberg-flink:flink-runtime-1.14').projectDir = file('flink/v1.14/flink-runtime')
- project(':iceberg-flink:flink-runtime-1.14').name = 'iceberg-flink-runtime-1.14'
+ include ":iceberg-flink:flink-1.14_${scalaVersion}"
+ include ":iceberg-flink:flink-runtime-1.14_${scalaVersion}"
+ project(":iceberg-flink:flink-1.14_${scalaVersion}").projectDir = file('flink/v1.14/flink')
+ project(":iceberg-flink:flink-1.14_${scalaVersion}").name = "iceberg-flink-1.14_${scalaVersion}"
+ project(":iceberg-flink:flink-runtime-1.14_${scalaVersion}").projectDir = file('flink/v1.14/flink-runtime')
+ project(":iceberg-flink:flink-runtime-1.14_${scalaVersion}").name = "iceberg-flink-runtime-1.14_${scalaVersion}"
Review comment:
> Is it possible to do that in a way that doesn’t require two build calls (one for each Scala version)?
As far as I know, the `gradle` command cannot deploy the projects with two different values for a given system property. I mean I think the two build calls to build two separate flink scala runtime jar is the thing we need to do. I see we usually deploy the artifacts to maven repository by executing this [stage-binaries.sh](https://github.com/apache/iceberg/blob/master/dev/stage-binaries.sh). I think it's okay to add the two `gradle` build calls into this bash script.
(In general, I think it's a good question)
--
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@iceberg.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org
[GitHub] [iceberg] kbendick commented on pull request #4157: Flink: Support configurable Scala version.
Posted by GitBox <gi...@apache.org>.
kbendick commented on pull request #4157:
URL: https://github.com/apache/iceberg/pull/4157#issuecomment-1045130210
@openinx I created a draft PR to update the release script (just for the Scala 2.13 with Spark support).
I probably should have just opened a ticket. Please feel free to close that one if you update things related to the release (otherwise we'll be sure to update before Iceberg 0.14.0).
--
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@iceberg.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org
[GitHub] [iceberg] kbendick commented on a change in pull request #4157: Flink: Support configurable Scala version.
Posted by GitBox <gi...@apache.org>.
kbendick commented on a change in pull request #4157:
URL: https://github.com/apache/iceberg/pull/4157#discussion_r809665070
##########
File path: settings.gradle
##########
@@ -87,30 +87,30 @@ if (!flinkVersions.isEmpty()) {
}
if (flinkVersions.contains("1.12")) {
- include ':iceberg-flink:flink-1.12'
- include ':iceberg-flink:flink-runtime-1.12'
- project(':iceberg-flink:flink-1.12').projectDir = file('flink/v1.12/flink')
- project(':iceberg-flink:flink-1.12').name = 'iceberg-flink-1.12'
- project(':iceberg-flink:flink-runtime-1.12').projectDir = file('flink/v1.12/flink-runtime')
- project(':iceberg-flink:flink-runtime-1.12').name = 'iceberg-flink-runtime-1.12'
+ include ":iceberg-flink:flink-1.12_${scalaVersion}"
+ include ":iceberg-flink:flink-runtime-1.12_${scalaVersion}"
+ project(":iceberg-flink:flink-1.12_${scalaVersion}").projectDir = file('flink/v1.12/flink')
+ project(":iceberg-flink:flink-1.12_${scalaVersion}").name = "iceberg-flink-1.12_${scalaVersion}"
+ project(":iceberg-flink:flink-runtime-1.12_${scalaVersion}").projectDir = file('flink/v1.12/flink-runtime')
+ project(":iceberg-flink:flink-runtime-1.12_${scalaVersion}").name = "iceberg-flink-runtime-1.12_${scalaVersion}"
}
if (flinkVersions.contains("1.13")) {
- include ':iceberg-flink:flink-1.13'
- include ':iceberg-flink:flink-runtime-1.13'
- project(':iceberg-flink:flink-1.13').projectDir = file('flink/v1.13/flink')
- project(':iceberg-flink:flink-1.13').name = 'iceberg-flink-1.13'
- project(':iceberg-flink:flink-runtime-1.13').projectDir = file('flink/v1.13/flink-runtime')
- project(':iceberg-flink:flink-runtime-1.13').name = 'iceberg-flink-runtime-1.13'
+ include ":iceberg-flink:flink-1.13_${scalaVersion}"
+ include ":iceberg-flink:flink-runtime-1.13_${scalaVersion}"
+ project(":iceberg-flink:flink-1.13_${scalaVersion}").projectDir = file('flink/v1.13/flink')
+ project(":iceberg-flink:flink-1.13_${scalaVersion}").name = "iceberg-flink-1.13_${scalaVersion}"
+ project(":iceberg-flink:flink-runtime-1.13_${scalaVersion}").projectDir = file('flink/v1.13/flink-runtime')
+ project(":iceberg-flink:flink-runtime-1.13_${scalaVersion}").name = "iceberg-flink-runtime-1.13_${scalaVersion}"
}
if (flinkVersions.contains("1.14")) {
- include ':iceberg-flink:flink-1.14'
- include ':iceberg-flink:flink-runtime-1.14'
- project(':iceberg-flink:flink-1.14').projectDir = file('flink/v1.14/flink')
- project(':iceberg-flink:flink-1.14').name = 'iceberg-flink-1.14'
- project(':iceberg-flink:flink-runtime-1.14').projectDir = file('flink/v1.14/flink-runtime')
- project(':iceberg-flink:flink-runtime-1.14').name = 'iceberg-flink-runtime-1.14'
+ include ":iceberg-flink:flink-1.14_${scalaVersion}"
+ include ":iceberg-flink:flink-runtime-1.14_${scalaVersion}"
+ project(":iceberg-flink:flink-1.14_${scalaVersion}").projectDir = file('flink/v1.14/flink')
+ project(":iceberg-flink:flink-1.14_${scalaVersion}").name = "iceberg-flink-1.14_${scalaVersion}"
+ project(":iceberg-flink:flink-runtime-1.14_${scalaVersion}").projectDir = file('flink/v1.14/flink-runtime')
+ project(":iceberg-flink:flink-runtime-1.14_${scalaVersion}").name = "iceberg-flink-runtime-1.14_${scalaVersion}"
Review comment:
Correct me if I’m wrong, but I think we need to be able to publish / build all combinations of Flink / Scala versions here. For example, when publishing a new release to maven we need to build all of the artifacts.
Is it possible to do that in a way that doesn’t require two build calls (one for each Scala version)? I’m not a highly experienced Scala with gradle user, so I might be mistaken or it might be necessary to use two build calls.
But it makes the release process more cumbersome and particular to have to call build multiple times, which is something we’ve been trying to make more streamlined (the build / release process).
I’m ok with iterating on things and would not block on this, but it is a concern for me.
--
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@iceberg.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org
[GitHub] [iceberg] openinx commented on a change in pull request #4157: Flink: Support configurable Scala version.
Posted by GitBox <gi...@apache.org>.
openinx commented on a change in pull request #4157:
URL: https://github.com/apache/iceberg/pull/4157#discussion_r809713598
##########
File path: flink/v1.14/build.gradle
##########
@@ -17,18 +17,11 @@
* under the License.
*/
-def flinkProjects = [
- project(':iceberg-flink:iceberg-flink-1.14'),
- project(':iceberg-flink:iceberg-flink-runtime-1.14')
-]
-
-configure(flinkProjects) {
- project.ext {
- flinkVersion = '1.14.0'
- }
-}
+String flinkVersion = '1.14.0'
+String flinkMajorVersion = '1.14'
+String scalaVersion = System.getProperty("scalaVersion") != null ? System.getProperty("scalaVersion") : System.getProperty("defaultScalaVersion")
Review comment:
Good question, I also considered this issue before. The current available scala version for flink are `2.11` and `2.12`, for most of people as far I know, they mainly choose scala 2.11 for the production environment. But the available scala versions for spark are `2.11`, `2.12`, `2.13` ( Some major version only support 2.12).
So in fact, the supported scala version ranges are quite different between spark & flink. I think it's better to separate the scala version for them, saying introduce two different system properties for them ( `sparkScalaVersion` and `flinkScalaVersion`).
--
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@iceberg.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org
[GitHub] [iceberg] kbendick commented on a change in pull request #4157: Flink: Support configurable Scala version.
Posted by GitBox <gi...@apache.org>.
kbendick commented on a change in pull request #4157:
URL: https://github.com/apache/iceberg/pull/4157#discussion_r809673513
##########
File path: settings.gradle
##########
@@ -87,30 +87,30 @@ if (!flinkVersions.isEmpty()) {
}
if (flinkVersions.contains("1.12")) {
- include ':iceberg-flink:flink-1.12'
- include ':iceberg-flink:flink-runtime-1.12'
- project(':iceberg-flink:flink-1.12').projectDir = file('flink/v1.12/flink')
- project(':iceberg-flink:flink-1.12').name = 'iceberg-flink-1.12'
- project(':iceberg-flink:flink-runtime-1.12').projectDir = file('flink/v1.12/flink-runtime')
- project(':iceberg-flink:flink-runtime-1.12').name = 'iceberg-flink-runtime-1.12'
+ include ":iceberg-flink:flink-1.12_${scalaVersion}"
+ include ":iceberg-flink:flink-runtime-1.12_${scalaVersion}"
+ project(":iceberg-flink:flink-1.12_${scalaVersion}").projectDir = file('flink/v1.12/flink')
+ project(":iceberg-flink:flink-1.12_${scalaVersion}").name = "iceberg-flink-1.12_${scalaVersion}"
+ project(":iceberg-flink:flink-runtime-1.12_${scalaVersion}").projectDir = file('flink/v1.12/flink-runtime')
+ project(":iceberg-flink:flink-runtime-1.12_${scalaVersion}").name = "iceberg-flink-runtime-1.12_${scalaVersion}"
}
if (flinkVersions.contains("1.13")) {
- include ':iceberg-flink:flink-1.13'
- include ':iceberg-flink:flink-runtime-1.13'
- project(':iceberg-flink:flink-1.13').projectDir = file('flink/v1.13/flink')
- project(':iceberg-flink:flink-1.13').name = 'iceberg-flink-1.13'
- project(':iceberg-flink:flink-runtime-1.13').projectDir = file('flink/v1.13/flink-runtime')
- project(':iceberg-flink:flink-runtime-1.13').name = 'iceberg-flink-runtime-1.13'
+ include ":iceberg-flink:flink-1.13_${scalaVersion}"
+ include ":iceberg-flink:flink-runtime-1.13_${scalaVersion}"
+ project(":iceberg-flink:flink-1.13_${scalaVersion}").projectDir = file('flink/v1.13/flink')
+ project(":iceberg-flink:flink-1.13_${scalaVersion}").name = "iceberg-flink-1.13_${scalaVersion}"
+ project(":iceberg-flink:flink-runtime-1.13_${scalaVersion}").projectDir = file('flink/v1.13/flink-runtime')
+ project(":iceberg-flink:flink-runtime-1.13_${scalaVersion}").name = "iceberg-flink-runtime-1.13_${scalaVersion}"
}
if (flinkVersions.contains("1.14")) {
- include ':iceberg-flink:flink-1.14'
- include ':iceberg-flink:flink-runtime-1.14'
- project(':iceberg-flink:flink-1.14').projectDir = file('flink/v1.14/flink')
- project(':iceberg-flink:flink-1.14').name = 'iceberg-flink-1.14'
- project(':iceberg-flink:flink-runtime-1.14').projectDir = file('flink/v1.14/flink-runtime')
- project(':iceberg-flink:flink-runtime-1.14').name = 'iceberg-flink-runtime-1.14'
+ include ":iceberg-flink:flink-1.14_${scalaVersion}"
+ include ":iceberg-flink:flink-runtime-1.14_${scalaVersion}"
+ project(":iceberg-flink:flink-1.14_${scalaVersion}").projectDir = file('flink/v1.14/flink')
+ project(":iceberg-flink:flink-1.14_${scalaVersion}").name = "iceberg-flink-1.14_${scalaVersion}"
+ project(":iceberg-flink:flink-runtime-1.14_${scalaVersion}").projectDir = file('flink/v1.14/flink-runtime')
+ project(":iceberg-flink:flink-runtime-1.14_${scalaVersion}").name = "iceberg-flink-runtime-1.14_${scalaVersion}"
Review comment:
Looking at the Spark on Scala 2.13 support PR, it looks like `scalaVersion` flag with two build calls is what is used.
I’m not sure if the release scripts have been updated to support this yet though.
--
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@iceberg.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org
[GitHub] [iceberg] rdblue merged pull request #4157: Flink: Support configurable Scala version.
Posted by GitBox <gi...@apache.org>.
rdblue merged pull request #4157:
URL: https://github.com/apache/iceberg/pull/4157
--
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@iceberg.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org
[GitHub] [iceberg] kbendick commented on a change in pull request #4157: Flink: Support configurable Scala version.
Posted by GitBox <gi...@apache.org>.
kbendick commented on a change in pull request #4157:
URL: https://github.com/apache/iceberg/pull/4157#discussion_r809675142
##########
File path: flink/v1.14/build.gradle
##########
@@ -17,18 +17,11 @@
* under the License.
*/
-def flinkProjects = [
- project(':iceberg-flink:iceberg-flink-1.14'),
- project(':iceberg-flink:iceberg-flink-runtime-1.14')
-]
-
-configure(flinkProjects) {
- project.ext {
- flinkVersion = '1.14.0'
- }
-}
+String flinkVersion = '1.14.0'
+String flinkMajorVersion = '1.14'
+String scalaVersion = System.getProperty("scalaVersion") != null ? System.getProperty("scalaVersion") : System.getProperty("defaultScalaVersion")
Review comment:
As mentioned, Spark is also using `scalaVersion` flag. So we’ll definitely need to define explicit known Flink Scala version combos to disallow say, somebody trying to build Flink with Scala 2.13 (as the name will probably be shared).
Very interested in people’s thoughts on how to handle this concern of `scalaVersion` and Flink / Spark versions and their different supported combinations.
--
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@iceberg.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org
[GitHub] [iceberg] kbendick commented on a change in pull request #4157: Flink: Support configurable Scala version.
Posted by GitBox <gi...@apache.org>.
kbendick commented on a change in pull request #4157:
URL: https://github.com/apache/iceberg/pull/4157#discussion_r809666149
##########
File path: flink/v1.14/build.gradle
##########
@@ -17,18 +17,11 @@
* under the License.
*/
-def flinkProjects = [
- project(':iceberg-flink:iceberg-flink-1.14'),
- project(':iceberg-flink:iceberg-flink-runtime-1.14')
-]
-
-configure(flinkProjects) {
- project.ext {
- flinkVersion = '1.14.0'
- }
-}
+String flinkVersion = '1.14.0'
+String flinkMajorVersion = '1.14'
+String scalaVersion = System.getProperty("scalaVersion") != null ? System.getProperty("scalaVersion") : System.getProperty("defaultScalaVersion")
Review comment:
We’ve recently also had work for supporting Scala 2.13 in Spark, so it might be wise to name `scalaVersion` to something more Flink related to keep the two separated. Though this isn’t a list of all known Scala versions for Flink so might not be a concern here.
--
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@iceberg.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org
[GitHub] [iceberg] rdblue commented on pull request #4157: Flink: Support configurable Scala version.
Posted by GitBox <gi...@apache.org>.
rdblue commented on pull request #4157:
URL: https://github.com/apache/iceberg/pull/4157#issuecomment-1046278630
Thanks, @openinx! Good to have this ready for when Flink supports 2.13.
--
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@iceberg.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org
[GitHub] [iceberg] rdblue commented on a change in pull request #4157: Flink: Support configurable Scala version.
Posted by GitBox <gi...@apache.org>.
rdblue commented on a change in pull request #4157:
URL: https://github.com/apache/iceberg/pull/4157#discussion_r810654129
##########
File path: settings.gradle
##########
@@ -87,30 +87,30 @@ if (!flinkVersions.isEmpty()) {
}
if (flinkVersions.contains("1.12")) {
- include ':iceberg-flink:flink-1.12'
- include ':iceberg-flink:flink-runtime-1.12'
- project(':iceberg-flink:flink-1.12').projectDir = file('flink/v1.12/flink')
- project(':iceberg-flink:flink-1.12').name = 'iceberg-flink-1.12'
- project(':iceberg-flink:flink-runtime-1.12').projectDir = file('flink/v1.12/flink-runtime')
- project(':iceberg-flink:flink-runtime-1.12').name = 'iceberg-flink-runtime-1.12'
+ include ":iceberg-flink:flink-1.12_${scalaVersion}"
+ include ":iceberg-flink:flink-runtime-1.12_${scalaVersion}"
+ project(":iceberg-flink:flink-1.12_${scalaVersion}").projectDir = file('flink/v1.12/flink')
+ project(":iceberg-flink:flink-1.12_${scalaVersion}").name = "iceberg-flink-1.12_${scalaVersion}"
+ project(":iceberg-flink:flink-runtime-1.12_${scalaVersion}").projectDir = file('flink/v1.12/flink-runtime')
+ project(":iceberg-flink:flink-runtime-1.12_${scalaVersion}").name = "iceberg-flink-runtime-1.12_${scalaVersion}"
}
if (flinkVersions.contains("1.13")) {
- include ':iceberg-flink:flink-1.13'
- include ':iceberg-flink:flink-runtime-1.13'
- project(':iceberg-flink:flink-1.13').projectDir = file('flink/v1.13/flink')
- project(':iceberg-flink:flink-1.13').name = 'iceberg-flink-1.13'
- project(':iceberg-flink:flink-runtime-1.13').projectDir = file('flink/v1.13/flink-runtime')
- project(':iceberg-flink:flink-runtime-1.13').name = 'iceberg-flink-runtime-1.13'
+ include ":iceberg-flink:flink-1.13_${scalaVersion}"
+ include ":iceberg-flink:flink-runtime-1.13_${scalaVersion}"
+ project(":iceberg-flink:flink-1.13_${scalaVersion}").projectDir = file('flink/v1.13/flink')
+ project(":iceberg-flink:flink-1.13_${scalaVersion}").name = "iceberg-flink-1.13_${scalaVersion}"
+ project(":iceberg-flink:flink-runtime-1.13_${scalaVersion}").projectDir = file('flink/v1.13/flink-runtime')
+ project(":iceberg-flink:flink-runtime-1.13_${scalaVersion}").name = "iceberg-flink-runtime-1.13_${scalaVersion}"
}
if (flinkVersions.contains("1.14")) {
- include ':iceberg-flink:flink-1.14'
- include ':iceberg-flink:flink-runtime-1.14'
- project(':iceberg-flink:flink-1.14').projectDir = file('flink/v1.14/flink')
- project(':iceberg-flink:flink-1.14').name = 'iceberg-flink-1.14'
- project(':iceberg-flink:flink-runtime-1.14').projectDir = file('flink/v1.14/flink-runtime')
- project(':iceberg-flink:flink-runtime-1.14').name = 'iceberg-flink-runtime-1.14'
+ include ":iceberg-flink:flink-1.14_${scalaVersion}"
+ include ":iceberg-flink:flink-runtime-1.14_${scalaVersion}"
+ project(":iceberg-flink:flink-1.14_${scalaVersion}").projectDir = file('flink/v1.14/flink')
+ project(":iceberg-flink:flink-1.14_${scalaVersion}").name = "iceberg-flink-1.14_${scalaVersion}"
+ project(":iceberg-flink:flink-runtime-1.14_${scalaVersion}").projectDir = file('flink/v1.14/flink-runtime')
+ project(":iceberg-flink:flink-runtime-1.14_${scalaVersion}").name = "iceberg-flink-runtime-1.14_${scalaVersion}"
Review comment:
Yeah, we can't have multiple Scala versions in the build without strange errors. We'll have to update the binary release script to publish Scala 2.13 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@iceberg.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org
[GitHub] [iceberg] openinx commented on a change in pull request #4157: Flink: Support configurable Scala version.
Posted by GitBox <gi...@apache.org>.
openinx commented on a change in pull request #4157:
URL: https://github.com/apache/iceberg/pull/4157#discussion_r809713598
##########
File path: flink/v1.14/build.gradle
##########
@@ -17,18 +17,11 @@
* under the License.
*/
-def flinkProjects = [
- project(':iceberg-flink:iceberg-flink-1.14'),
- project(':iceberg-flink:iceberg-flink-runtime-1.14')
-]
-
-configure(flinkProjects) {
- project.ext {
- flinkVersion = '1.14.0'
- }
-}
+String flinkVersion = '1.14.0'
+String flinkMajorVersion = '1.14'
+String scalaVersion = System.getProperty("scalaVersion") != null ? System.getProperty("scalaVersion") : System.getProperty("defaultScalaVersion")
Review comment:
Good question, I also considered this issue before. The current available scala version for flink are `2.11` and `2.12`, for most of people as far I know, they mainly choose scala 2.11 for the production environment. But the available scala versions for spark are `2.11`, `2.12`, `2.13` ( Some major version only support 2.12).
So in fact, the supported scala version ranges are quite different between spark & flink. Besides, the supported scala version ranges are also different between different spark versions. Let's see the following table:
* https://mvnrepository.com/artifact/org.apache.spark/spark-sql
* https://mvnrepository.com/artifact/org.apache.flink/flink-scala
So even if we separate the scala version between spark & flink, the same scala version still could not be applied to build all the iceberg spark runtime jars I think. The correct approach is: try to package related artifacts in one build process as much as possible. If we can't build in one build, we can only choose to build again.
--
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@iceberg.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org
[GitHub] [iceberg] rdblue commented on a change in pull request #4157: Flink: Support configurable Scala version.
Posted by GitBox <gi...@apache.org>.
rdblue commented on a change in pull request #4157:
URL: https://github.com/apache/iceberg/pull/4157#discussion_r810170223
##########
File path: flink/v1.14/build.gradle
##########
@@ -17,18 +17,11 @@
* under the License.
*/
-def flinkProjects = [
- project(':iceberg-flink:iceberg-flink-1.14'),
- project(':iceberg-flink:iceberg-flink-runtime-1.14')
-]
-
-configure(flinkProjects) {
- project.ext {
- flinkVersion = '1.14.0'
- }
-}
+String flinkVersion = '1.14.0'
+String flinkMajorVersion = '1.14'
+String scalaVersion = System.getProperty("scalaVersion") != null ? System.getProperty("scalaVersion") : System.getProperty("defaultScalaVersion")
Review comment:
Since there can only be one Scala version in the build, I think using the same `scalaVersion` flag should be fine.
--
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@iceberg.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org
[GitHub] [iceberg] openinx commented on a change in pull request #4157: Flink: Support configurable Scala version.
Posted by GitBox <gi...@apache.org>.
openinx commented on a change in pull request #4157:
URL: https://github.com/apache/iceberg/pull/4157#discussion_r811700041
##########
File path: flink/v1.12/build.gradle
##########
@@ -17,18 +17,11 @@
* under the License.
*/
-def flinkProjects = [
- project(':iceberg-flink:iceberg-flink-1.12'),
- project(':iceberg-flink:iceberg-flink-runtime-1.12')
-]
-
-configure(flinkProjects) {
- project.ext {
- flinkVersion = '1.12.5'
- }
-}
+String flinkVersion = '1.12.5'
+String flinkMajorVersion = '1.12'
+String scalaVersion = System.getProperty("scalaVersion") != null ? System.getProperty("scalaVersion") : System.getProperty("defaultScalaVersion")
-project(':iceberg-flink:iceberg-flink-1.12') {
+project(":iceberg-flink:iceberg-flink-${flinkMajorVersion}_${scalaVersion}") {
Review comment:
@rdblue @kbendick Seems I made a mistake here ? Since we apache iceberg flink & flink-runtime modules don't introduce any scala dependencies, so in theory the iceberg-flink-1.14.jar & iceberg-flink-runtime-1.14.jar can work fine on both flink-1.14.0-bin-scala_2.11 & flink-1.14.0-bin-scala_2.12 release. So we don't need to add any `_${scalaVersion}` suffix for `iceberg-flink` & `iceberg-flink-runtime` jar.
(But we still need this PR to make iceberg-flink/iceber-flink-runtime compile on different scala version ).
##########
File path: flink/v1.12/build.gradle
##########
@@ -17,18 +17,11 @@
* under the License.
*/
-def flinkProjects = [
- project(':iceberg-flink:iceberg-flink-1.12'),
- project(':iceberg-flink:iceberg-flink-runtime-1.12')
-]
-
-configure(flinkProjects) {
- project.ext {
- flinkVersion = '1.12.5'
- }
-}
+String flinkVersion = '1.12.5'
+String flinkMajorVersion = '1.12'
+String scalaVersion = System.getProperty("scalaVersion") != null ? System.getProperty("scalaVersion") : System.getProperty("defaultScalaVersion")
-project(':iceberg-flink:iceberg-flink-1.12') {
+project(":iceberg-flink:iceberg-flink-${flinkMajorVersion}_${scalaVersion}") {
Review comment:
➜ iceberg git:(master) ✗ ./gradlew :iceberg-flink:iceberg-flink-runtime-1.14_2.12:dependencies --configuration runtimeClasspath
```
> Task :iceberg-flink:iceberg-flink-runtime-1.14_2.12:dependencies
------------------------------------------------------------
Project ':iceberg-flink:iceberg-flink-runtime-1.14_2.12'
------------------------------------------------------------
runtimeClasspath - Runtime classpath of source set 'main'.
+--- com.github.stephenc.findbugs:findbugs-annotations -> 1.3.9-1
+--- project :iceberg-flink:iceberg-flink-1.14_2.12
| +--- project :iceberg-api
| | +--- com.github.stephenc.findbugs:findbugs-annotations -> 1.3.9-1
| | \--- project :iceberg-bundled-guava
| +--- project :iceberg-data
| | +--- project :iceberg-api (*)
| | +--- com.github.stephenc.findbugs:findbugs-annotations -> 1.3.9-1
| | +--- project :iceberg-bundled-guava
| | +--- project :iceberg-core
| | | +--- project :iceberg-api (*)
| | | +--- com.github.stephenc.findbugs:findbugs-annotations -> 1.3.9-1
| | | +--- project :iceberg-common
| | | | +--- com.github.stephenc.findbugs:findbugs-annotations -> 1.3.9-1
| | | | \--- project :iceberg-bundled-guava
| | | +--- project :iceberg-bundled-guava
| | | +--- org.apache.avro:avro -> 1.10.1
| | | | +--- com.fasterxml.jackson.core:jackson-core:2.11.3 -> 2.11.4
| | | | \--- com.fasterxml.jackson.core:jackson-databind:2.11.3 -> 2.11.4
| | | | +--- com.fasterxml.jackson.core:jackson-annotations:2.11.4
| | | | \--- com.fasterxml.jackson.core:jackson-core:2.11.4
| | | +--- com.fasterxml.jackson.core:jackson-databind -> 2.11.4 (*)
| | | +--- com.fasterxml.jackson.core:jackson-core -> 2.11.4
| | | +--- com.github.ben-manes.caffeine:caffeine -> 2.8.4
| | | | +--- org.checkerframework:checker-qual:3.4.0
| | | | \--- com.google.errorprone:error_prone_annotations:2.3.4
| | | \--- org.roaringbitmap:RoaringBitmap -> 0.9.22
| | | \--- org.roaringbitmap:shims:0.9.22
| | +--- org.apache.orc:orc-core -> 1.7.3
| | | +--- org.apache.orc:orc-shims:1.7.3
| | | +--- io.airlift:aircompressor:0.21
| | | +--- org.jetbrains:annotations:17.0.0
| | | \--- org.threeten:threeten-extra:1.5.0
| | \--- org.apache.parquet:parquet-avro -> 1.12.2
| | +--- org.apache.parquet:parquet-column:1.12.2
| | | +--- org.apache.parquet:parquet-common:1.12.2
| | | | +--- org.apache.parquet:parquet-format-structures:1.12.2
| | | | \--- org.apache.yetus:audience-annotations:0.12.0
| | | \--- org.apache.parquet:parquet-encoding:1.12.2
| | | \--- org.apache.parquet:parquet-common:1.12.2 (*)
| | +--- org.apache.parquet:parquet-hadoop:1.12.2
| | | +--- org.apache.parquet:parquet-column:1.12.2 (*)
| | | +--- org.apache.parquet:parquet-format-structures:1.12.2
| | | +--- org.apache.parquet:parquet-jackson:1.12.2
| | | \--- com.github.luben:zstd-jni:1.4.9-1
| | \--- org.apache.parquet:parquet-format-structures:1.12.2
| +--- com.github.stephenc.findbugs:findbugs-annotations -> 1.3.9-1
| +--- project :iceberg-bundled-guava
| +--- project :iceberg-common (*)
| +--- project :iceberg-core (*)
| +--- project :iceberg-orc
| | +--- project :iceberg-api (*)
| | +--- com.github.stephenc.findbugs:findbugs-annotations -> 1.3.9-1
| | +--- project :iceberg-bundled-guava
| | +--- project :iceberg-core (*)
| | +--- org.apache.avro:avro -> 1.10.1 (*)
| | \--- org.apache.orc:orc-core -> 1.7.3 (*)
| +--- project :iceberg-parquet
| | +--- project :iceberg-api (*)
| | +--- com.github.stephenc.findbugs:findbugs-annotations -> 1.3.9-1
| | +--- project :iceberg-bundled-guava
| | +--- project :iceberg-core (*)
| | +--- project :iceberg-common (*)
| | \--- org.apache.parquet:parquet-avro -> 1.12.2 (*)
| +--- project :iceberg-hive-metastore
| | +--- project :iceberg-api (*)
| | +--- com.github.stephenc.findbugs:findbugs-annotations -> 1.3.9-1
| | +--- project :iceberg-bundled-guava
| | +--- project :iceberg-core (*)
| | +--- project :iceberg-common (*)
| | \--- com.github.ben-manes.caffeine:caffeine -> 2.8.4 (*)
| +--- org.apache.parquet:parquet-avro -> 1.12.2 (*)
| \--- org.apache.orc:orc-core -> 1.7.3 (*)
+--- project :iceberg-aws
| +--- project :iceberg-api (*)
| +--- com.github.stephenc.findbugs:findbugs-annotations -> 1.3.9-1
| +--- project :iceberg-bundled-guava
| +--- project :iceberg-common (*)
| \--- project :iceberg-core (*)
+--- project :iceberg-aliyun
| +--- project :iceberg-api (*)
| +--- com.github.stephenc.findbugs:findbugs-annotations -> 1.3.9-1
| +--- project :iceberg-bundled-guava
| +--- project :iceberg-core (*)
| \--- project :iceberg-common (*)
\--- project :iceberg-nessie
+--- project :iceberg-api (*)
+--- com.github.stephenc.findbugs:findbugs-annotations -> 1.3.9-1
+--- project :iceberg-common (*)
+--- project :iceberg-core (*)
+--- project :iceberg-bundled-guava
\--- org.projectnessie:nessie-client -> 0.20.1
\--- org.projectnessie:nessie-model:0.20.1
(*) - dependencies omitted (listed previously)
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.4/userguide/command_line_interface.html#sec:command_line_warnings
BUILD SUCCESSFUL in 29s
1 actionable task: 1 executed
```
--
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@iceberg.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org