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
I'm defining a encoding for java.util.Currency where the underlying format is just a string. However, when I attempt to use it with the DataFormat, it blows up with a failed cast operation. I've traced it down to this line here. Wondering if there are any issues changing this to call the encoder, for derived types like this?
org.apache.avro.file.DataFileWriter$AppendWriteException: java.lang.ClassCastException: class java.util.Currency cannot be cast to class java.lang.CharSequence (java.util.Currency and java.lang.CharSequence are in module java.base of loader 'bootstrap')
org.apache.avro.file.DataFileWriter$AppendWriteException: java.lang.ClassCastException: class java.util.Currency cannot be cast to class java.lang.CharSequence (java.util.Currency and java.lang.CharSequence are in module java.base of loader 'bootstrap')
at org.apache.avro.file.DataFileWriter.append(DataFileWriter.java:317)
at com.sksamuel.avro4s.AvroDataOutputStream.$anonfun$x$1$1(AvroDataOutputStream.scala:30)
at com.sksamuel.avro4s.AvroDataOutputStream.$anonfun$x$1$1$adapted(AvroDataOutputStream.scala:30)
at com.sksamuel.avro4s.AvroDataOutputStream.write(AvroDataOutputStream.scala:48)
at CurrencyCodecSpec.$anonfun$new$2(CurrencyCodecSpec.scala:19)
The text was updated successfully, but these errors were encountered:
Hello,
I'm defining a encoding for java.util.Currency where the underlying format is just a string. However, when I attempt to use it with the DataFormat, it blows up with a failed cast operation. I've traced it down to this line here. Wondering if there are any issues changing this to call the encoder, for derived types like this?
The text was updated successfully, but these errors were encountered: