-
Notifications
You must be signed in to change notification settings - Fork 156
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
Serializing ZonedDateTime with ZoneOffset.UTC results in invalid ZoneOffset #251
Comments
I assume that the problem here is that in that class the ZoneOffset is transient. The only solution is to implement a serializer for this class or to change to a different class that represents the data in a way that works with kryo (a case class of primitives?) |
Yes, that's what I ended up doing. I can post it here if it helps anyone. |
yeah a PR to chill-java would be great (should be in java though. :/) |
@YuvalItzchakov Could you post it/made pull request into chill with that one serializer? Thanks |
Btw, kryo 4 already provides serializers for java.time classes. |
@YuvalItzchakov any chance you can post the code? |
I'm using Kryo 2.21 on Java8 with Scala 2.10.6. Kryo comes packaged along with Apache Spark.
As part of an object I'm trying to serialize, I have a ZonedDateTime which I'm trying to serialize/deserialize. When I do so, the
Z
part of the offset is replaced withnull
.Reproduce:
Yields:
The text was updated successfully, but these errors were encountered: