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

java.lang.ClassCastException: java.lang.Long cannot be cast to java.sql.Timestamp #61

Open
holamap opened this issue Jul 16, 2018 · 1 comment
Labels

Comments

@holamap
Copy link

holamap commented Jul 16, 2018

I am trying to work with bigquery-public-data:chicago_crime.crime using spark and bigquery, and facing this exception below using samelamin/spark-bigquery package.
java.lang.ClassCastException: java.lang.Long cannot be cast to java.sql.Timestamp
org.apache.spark.sql.catalyst.CatalystTypeConverters$TimestampConverter$.toCatalystImpl(CatalystTypeConverters.scala:294) Is this known bug ?

@samelamin
Copy link
Owner

samelamin commented Aug 8, 2018

Sorry for the super late reply but I just had a daughter so was away for a bit

Seems like this is a bug yes, you can send a PR to add the missing data type here

@samelamin samelamin added the bug label Aug 8, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants