azure-cosmosdb-spark icon indicating copy to clipboard operation
azure-cosmosdb-spark copied to clipboard

Upgrade scala 2.12

Open maasg opened this issue 5 years ago • 15 comments

This PR upgrades the build and the code to compile to Scala 2.12. The code needed minor changes to disambiguate the SAM type inference.

I hope somebody could help out to support a multi-target build to produce 2.11 (if still needed) and 2.12.

Addresses #321 (but it doesn't preserve support for 2.11)

maasg avatar Nov 15 '19 14:11 maasg

CLA assistant check
All CLA requirements met.

msftclas avatar Nov 15 '19 14:11 msftclas

Has there been any update on this? Spark 3 will likely be released later this month so Scala 2.12 support is crucial

conorbmurphy avatar May 13 '20 00:05 conorbmurphy

Any updates? Also have projects targeting Spark 3.0 (which is now released) and need Scala 2.12 support. Will this get resolved soon?

mpfishe2 avatar Jul 06 '20 04:07 mpfishe2

We are planning to release a new version of the CosmosDB Spark connector targeting Spark 3.0 and Scala 2.12 in the second half of this calendar year.

FabianMeiswinkel avatar Jul 06 '20 06:07 FabianMeiswinkel

@FabianMeiswinkel I've refreshed the PR and ran all the tests. The CI seems to have a problem.

The command "~/bin/install-jdk.sh --target "/home/travis/oraclejdk8" --workspace "/home/travis/.cache/install-jdk" --feature "8" --license "BCL"" failed and exited with 56 during .

maasg avatar Jul 06 '20 14:07 maasg

@FabianMeiswinkel I've refreshed the PR and ran all the tests. The CI seems to have a problem.

The command "~/bin/install-jdk.sh --target "/home/travis/oraclejdk8" --workspace "/home/travis/.cache/install-jdk" --feature "8" --license "BCL"" failed and exited with 56 during .

We have no plan of merging this PR into the 2.4 branch because Scala 2.11 and 2.12 aren't binary compatible - we aren't planning on maintaining to official versions of our connector targeting Spark 2.4 - instead we will create a new major version targeting Spark 3.0 and Scala 2.12 - and continue to maintain the one targeting Spark 2.4 and Scala 2.11.

You can of course use private builds based off of this PR for your purposes.

FabianMeiswinkel avatar Jul 06 '20 18:07 FabianMeiswinkel

@FabianMeiswinkel Thanks for the info. Would you like me to close this PR or leave it as-is? I created it b/c some people needed a Scala 2.12 version and I gave them a hand with that but I don't use it myself and might go stale again after a while.

maasg avatar Jul 07 '20 09:07 maasg

@maasg - If you don't mind I would keep it open - I think it is a valuable help for anyone who needs to switch to Scala 2.12 even before the new major version of the CosmosDB Spark connector has been released.

FabianMeiswinkel avatar Jul 07 '20 11:07 FabianMeiswinkel

Spark 3.0 w/ Scala 2.12 has been released but still Cosmos connector supports only Scala 2.11. Any updates please?

asyncoder avatar Nov 11 '20 10:11 asyncoder

Related to #405 - 15+ people asking for this change. Is this still on the roadmap for 2020?

jenden avatar Dec 08 '20 20:12 jenden

We are planning to release a Spark 3 compatible connector before April 2021 - preview will start in Deb. 2021.

FabianMeiswinkel avatar Dec 08 '20 22:12 FabianMeiswinkel

We are planning to release a Spark 3 compatible connector before April 2021 - preview will start in Deb. 2021.

Waiting strongly on this preview. Otherwise, we can not use the last DataBricks features. This really blocks us currently.

SteffenMangold avatar Dec 28 '20 22:12 SteffenMangold

Any update on this upgrade? Databricks will EoL support scala 2.11 clusters by July 2021 so we need this upgrade way before then

duttong13 avatar Jan 21 '21 09:01 duttong13

Its April 1st, I haven't seen a preview or anything. Any update on this? Really expected more out of Microsoft.

EdgeyErn avatar Apr 01 '21 20:04 EdgeyErn

Any update on this?

We need to have scala 2.12 build in spark 2.4.x

vinaykv1991 avatar Aug 04 '22 06:08 vinaykv1991