-
Notifications
You must be signed in to change notification settings - Fork 147
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
[529] Build xtable with scala version(s) #544
[529] Build xtable with scala version(s) #544
Conversation
Let's suffix the Scala version (2.12) to the jar name as suggested by @pjfanning |
pom.xml
Outdated
<scala.version>2.12.15</scala.version> | ||
<scala.version.prefix>2.12</scala.version.prefix> | ||
<scala12.version>2.12.15</scala12.version> | ||
<scala13.version>2.13.8</scala13.version> |
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.
why not use Scala 2.12.20 and 2.13.14 - the latest versions of these patch lines?
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.
Based on the Spark version, we need to use a supported Scala version. Specifically, Spark 3.4 version supports Scala 2.12.17 for Scala 2.12 and Scala 2.13.8 for Scala 2.13.
Whenever I address all review comments, I will update the Scala 2.12 version to 2.12.17.
Reference:
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.
You should be able to use the latest patch level Scala compiler releases. This is what the Scala team recommend.
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.
There are still some references for these jars across the repo. Can include the suffix in those places as well ? For example, website module just uses 0.2.0-SNAPSHOT without the scala suffix for utilities and core jars.
https://github.com/search?q=repo%3Aapache%2Fincubator-xtable%20xtable-utilities-&type=code.
https://github.com/search?q=repo%3Aapache%2Fincubator-xtable+xtable-core-&type=code
@pjfanning Can you review if things look okay ? This is the last release blocker for 0.2.0. |
</build> | ||
</profile> | ||
|
||
<!--Scala 2.13 Profile --> |
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.
@pjfanning Do we leave this as commented out or should we clean it up ?
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
Dockerfile
Outdated
@@ -23,7 +23,7 @@ WORKDIR /build | |||
COPY ./ ./ | |||
RUN --mount=type=cache,target=/root/.m2 \ | |||
MAVEN_OPTS=-Dorg.slf4j.simpleLogger.defaultLogLevel=warn mvn -B package -DskipTests | |||
RUN mv xtable-utilities/target/xtable-utilities-$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout)-bundled.jar target/app.jar | |||
RUN mv xtable-utilities_2.12-$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout)-bundled.jar target/app.jar |
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.
@rangareddy I ran this locally, should this be ?
xtable-utilities/target/xtable-utilities_2.12
@rangareddy Let's squash before merging. |
d87eb0f
to
a51c331
Compare
Important Read
This pull request aims to address issues #529
What is the purpose of the pull request
To support building the xtable with multiple scala versions i.e 2.12 and 2.13.
Brief change log
Verify this pull request
Run
$ mvn clean install -DskipTests -U
locally.Note: Hudi does not yet support Scala 2.13 jars, so the scala-2.13 profile is commented out. Once Hudi supports Scala 2.13, we can use the following command to build xtable with Scala 2.13.
References