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

[VL] Add Scala 2.13 support #6326

Open
wants to merge 13 commits into
base: main
Choose a base branch
from

Conversation

Preetesh2110
Copy link

What changes were proposed in this pull request?

Add Scala 2.13 support

(Fixes: #6316)

How was this patch tested?

Build locally

(If this patch involves UI changes, please attach a screenshot; otherwise, remove this)

Copy link

github-actions bot commented Jul 3, 2024

Thanks for opening a pull request!

Could you open an issue for this pull request on Github Issues?

https://github.com/apache/incubator-gluten/issues

Then could you also rename commit message and pull request title in the following format?

[GLUTEN-${ISSUES_ID}][COMPONENT]feat/fix: ${detailed message}

See also:

Copy link

github-actions bot commented Jul 3, 2024

Run Gluten Clickhouse CI

Copy link

github-actions bot commented Jul 3, 2024

Run Gluten Clickhouse CI

@surnaik
Copy link
Contributor

surnaik commented Jul 4, 2024

@zhztheplayer Could you please review this PR? Thanks!

@LuciferYang
Copy link

Prior to Spark 4.0, Scala 2.13 was not the default Scala version, and I personally do not recommend supporting it for Spark 3.x.

@surnaik
Copy link
Contributor

surnaik commented Jul 8, 2024

Thanks @LuciferYang, I think Scala 2.13 support is already added for CH backend, plan was to extend to VL backend as well, since the build fails when you enable -Pbackends-velox -Pscala-2.13, that was the plan, does that make sense.

FYI, the support for Scala 2.13 was added here already - #6311

cc: @zhztheplayer

@surnaik
Copy link
Contributor

surnaik commented Jul 8, 2024

@Preetesh2110 please take a look at failing CI and maybe also add a CI option to build with Scala 2.13

@LuciferYang
Copy link

Thanks @LuciferYang, I think Scala 2.13 support is already added for CH backend, plan was to extend to VL backend as well, since the build fails when you enable -Pbackends-velox -Pscala-2.13, that was the plan, does that make sense.

FYI, the support for Scala 2.13 was added here already - #6311

cc: @zhztheplayer

Got

Copy link

Run Gluten Clickhouse CI

@Preetesh2110
Copy link
Author

thanks @surnaik. fixed the scala Style issues.

@zhztheplayer
Copy link
Member

Do we need to have a test for Scala 2.13 (with Spark 3.5 probably) ? https://github.com/apache/incubator-gluten/blob/main/.github/workflows/velox_docker.yml

Copy link

Run Gluten Clickhouse CI

@Preetesh2110
Copy link
Author

Thanks for the feedback. I have added a workflow @zhztheplayer.

@zhztheplayer
Copy link
Member

Run Gluten Clickhouse CI

Comment on lines 1092 to 1097
- name: Build and Run unit test for Spark 3.5.1 with Scala 2.13 (other tests)
run: |
cd $GITHUB_WORKSPACE/
export SPARK_SCALA_VERSION=2.13
$MVN_CMD clean install -Pspark-3.5 -Pscala-2.13 -Pbackends-velox -Pceleborn -Piceberg -Pdelta -Pspark-ut -DargLine="-Dspark.test.home=$GITHUB_WORKSPACE//shims/spark35/spark_home/" -DtagsToExclude=org.apache.spark.tags.ExtendedSQLTest,org.apache.gluten.tags.UDFTest,org.apache.gluten.tags.SkipTestTags && \
$MVN_CMD test -Pspark-3.5 -Pscala-2.13 -Pbackends-velox -Piceberg -Pdelta -DtagsToExclude=None -DtagsToInclude=org.apache.gluten.tags.UDFTest
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This could make job run-spark-test-spark35 much slower.

If so, probably we should add a job run-spark-test-spark35-scala213. cc @zhouyuan @PHILO-HE

Copy link
Author

@Preetesh2110 Preetesh2110 Jul 12, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done. Thanks @zhztheplayer

Copy link

Run Gluten Clickhouse CI

Copy link

Run Gluten Clickhouse CI

Copy link

Run Gluten Clickhouse CI

Copy link

Run Gluten Clickhouse CI

Copy link

Run Gluten Clickhouse CI

Copy link

Run Gluten Clickhouse CI

Copy link

Run Gluten Clickhouse CI

Copy link

Run Gluten Clickhouse CI

@surnaik
Copy link
Contributor

surnaik commented Jul 29, 2024

@Preetesh2110 Please fix the CI failures

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[VL] Add Scala 2.13 support
4 participants