-
Notifications
You must be signed in to change notification settings - Fork 235
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
support interval.microseconds for range window TimeStampType #2525
Conversation
1. This change supports interval.microseconds for TimeStampType. 2.fix a range window on DateType bug. When the order-by column type is DateType, the value bounded type should be IntegerType instead of CalendarIntervalType. In other words, Interval is not working when order-by column is DateType. Signed-off-by: Bobby Wang <wbo4958@gmail.com>
build |
sql-plugin/src/main/scala/com/nvidia/spark/rapids/GpuWindowExpression.scala
Outdated
Show resolved
Hide resolved
build |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a nit
ci.microseconds) | ||
} catch { | ||
case e: ArithmeticException => | ||
willNotWorkOnGpu("interval total microseconds has overflow") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would like to see a better message. It is not clear how the user can fix this or what exactly has happened.
Perhaps something more like
willNotWorkOnGpu(s"windows over timestamps are converted to microseconds and $ci is too large to fit")
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thx @revans2. Done
build |
…2525) Signed-off-by: Bobby Wang <wbo4958@gmail.com>
…2525) Signed-off-by: Bobby Wang <wbo4958@gmail.com>
2.fix a range window on DateType bug.
When the order-by column type is DateType, the value bounded type
should be IntegerType instead of CalendarIntervalType.
In other words, Interval is not working when order-by column is DateType.
Signed-off-by: Bobby Wang wbo4958@gmail.com