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

Is it possible to support the between operator for SparkDateTime UDT #4

Open
hbutani opened this issue Jul 13, 2015 · 0 comments
Open

Comments

@hbutani
Copy link
Owner

hbutani commented Jul 13, 2015

A predicate like 'dateTime(o_orderdate) between dateTime("1995-01-01") and dateTime("1996-12-31")'
gives the following error.

org.apache.spark.SparkException: Job aborted due to stage failure: Task 0 in stage 18.0 failed 1 times, most recent failure: Lost task 0.0 in stage 18.0 (TID 1961, localhost): java.lang.RuntimeException: Type org.sparklinedata.spark.dateTime.SparkDateTimeUDT@52d6ab8c does not support ordered operations
at scala.sys.package$.error(package.scala:27)
at org.apache.spark.sql.catalyst.expressions.GreaterThanOrEqual.ordering$lzycompute(predicates.scala:309)

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