Skip to content
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

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

Open
yashk opened this issue Jan 23, 2014 · 0 comments

Comments

@yashk
Copy link

yashk commented Jan 23, 2014

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant