You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, I'm running into an issue serializing org.joda.time.DateTime through Kryo on Java; it appears to fail casting the java model DateTime to long. Does the library support this? Thanks!
When serialization is attempted, I end up with this stack:
java.lang.ClassCastException: org.joda.time.DateTime cannot be cast to java.lang.Long
at org.apache.avro.generic.GenericDatumWriter.write(GenericDatumWriter.java:79)
at org.apache.avro.generic.GenericDatumWriter.writeField(GenericDatumWriter.java:114)
at org.apache.avro.generic.GenericDatumWriter.writeRecord(GenericDatumWriter.java:104)
at org.apache.avro.generic.GenericDatumWriter.write(GenericDatumWriter.java:66)
at org.apache.avro.generic.GenericDatumWriter.write(GenericDatumWriter.java:58)
at com.twitter.bijection.avro.BinaryAvroCodec.apply(AvroCodecs.scala:273)
at com.twitter.bijection.avro.BinaryAvroCodec.apply(AvroCodecs.scala:269)
at com.twitter.chill.InjectiveSerializer.write(InjectiveSerializer.scala:24)
at com.esotericsoftware.kryo.Kryo.writeClassAndObject(Kryo.java:628)
at org.apache.spark.serializer.KryoSerializationStream.writeObject(KryoSerializer.scala:195)
...
The text was updated successfully, but these errors were encountered:
Hello, I'm running into an issue serializing org.joda.time.DateTime through Kryo on Java; it appears to fail casting the java model DateTime to long. Does the library support this? Thanks!
In a Spark Kryo registration class:
Where Foo is generated from Avro schema. The field in question is
When serialization is attempted, I end up with this stack:
The text was updated successfully, but these errors were encountered: