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
WrappedArray missing explicit SerialVersionUID annotation #5046
Comments
Imported From: https://issues.scala-lang.org/browse/SI-5046?orig=1
|
Belinda Gu (belindagu) said: |
@soc said: |
@soc said: As far as I understand, everything needs to be compatible within a major version, but outside of it, we don't give any guarantees, including (de)serialization compatibility. Should I close this ticket as "Out of Scope" for now? |
@adriaanm said: |
|
I see this ticket is closed. Is it now included in a release version of 2.12.x or 2.13.x or was it decided not to include it? |
It's milestoned 2.13.0-M4, which means the fix should be in 2.13.0 and subsequent versions ,too. Let us know if you find evidence to the contrary. |
Got it, thank you. |
@SethTisue 2.12.x has the same issue, is it possible to backport solution to 2.12.x? |
@dieu I can't think of any reason a PR with a backport wouldn't be merged |
I'm seeing this in Scala 2.13.5. Is this supposed to be fixed in that version? |
|
My mistake, I believe I had a mismatching spark-submit Scala version and build.sbt Scala version. |
I get the same failure. I am running on Spark 3.2.1 which in turn runs Scala 2.12.10. My code is also Scala 2.12.10, but I don' see where the issue is coming from or how to address it. |
@hamidelmaazouz scala/scala#9166 was merged for 2.12.14, so it's expected that you might run into this on 2.12.10 |
@hamidelmaazouz I know this here is an old issue. But did you manage to fix your problem? I'm facing the same thing in a spark setup where the communication between the driver and the executors "dies" because:
Can see the version of spark 3.2.1 I use is build with scala 2.12.11
Maybe you have some pointers to how I can fix my issue. |
I can confirm that bumping the scala version from
|
Hi @kaaquist, Sorry for the late reply. Indeed it's a Scala version problem. Scala AFAIK is not backwards compatible, so you need to match your scala version with the one used in Spark. So you have two solutions:
Best, |
SerialVersionUID is not explicitly set for WrappedArray and the subclasses of WrappedArray: ofRef, ofByte, ofShort, ofChar, etc.
I'm running into InvalidClassExceptions when deserializing an Enumeration that was serialized with a different version of scala-library:Caused by:
The text was updated successfully, but these errors were encountered: