ScaleUnlimited / cascading.avro

Cascading Scheme for the Apache Avro data serialization format
Other
19 stars 25 forks source link

CSV to Avro - java.lang.ClassCastException: java.lang.String cannot be cast to java.lang.Long #17

Open yashk opened 10 years ago

yashk commented 10 years ago

Versions used

Cascading 2.2.0 Cascading.avro 2.1.2 Hadoop 2.0.0-mr1-cdh4.4.0

i am trying to convert a CSV file to Avro using Cascading.avro package - , modifying ccsevers example https://gist.github.com/ccsevers/3975481

when i use, Long or Double types in output avro schema - conversion fails with .ClassCastException (e.g java.lang.ClassCastException: java.lang.String cannot be cast to java.lang.Long) ,

assuming this as straightforward case am i using the library incorrectly ?

details are below

i have updated all files and stacktrace as a gist - https://gist.github.com/yashk/8580517