-
Notifications
You must be signed in to change notification settings - Fork 242
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
Accelerate RunningWindow
queries on GPU
#2600
Merged
tgravescs
merged 11 commits into
NVIDIA:branch-21.06
from
mythrocks:running-window-function
Jun 9, 2021
Merged
Accelerate RunningWindow
queries on GPU
#2600
tgravescs
merged 11 commits into
NVIDIA:branch-21.06
from
mythrocks:running-window-function
Jun 9, 2021
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
abellina
reviewed
Jun 7, 2021
shims/spark301/src/main/scala/com/nvidia/spark/rapids/shims/spark301/SparkBaseShims.scala
Outdated
Show resolved
Hide resolved
...park301db/src/main/scala/com/nvidia/spark/rapids/shims/spark301db/GpuRunningWindowExec.scala
Outdated
Show resolved
Hide resolved
shims/spark311db/src/main/scala/com/nvidia/spark/rapids/shims/spark311db/Spark311dbShims.scala
Show resolved
Hide resolved
tgravescs
reviewed
Jun 7, 2021
...park301db/src/main/scala/com/nvidia/spark/rapids/shims/spark301db/GpuRunningWindowExec.scala
Show resolved
Hide resolved
build |
revans2
reviewed
Jun 7, 2021
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. It looks good.
...park311db/src/main/scala/com/nvidia/spark/rapids/shims/spark311db/GpuRunningWindowExec.scala
Show resolved
Hide resolved
tgravescs
previously approved these changes
Jun 8, 2021
build |
Rebased now, to include #2637. |
build |
1 similar comment
build |
tgravescs
previously approved these changes
Jun 9, 2021
abellina
reviewed
Jun 9, 2021
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 minor things.
sql-plugin/src/main/scala/com/nvidia/spark/rapids/RapidsMeta.scala
Outdated
Show resolved
Hide resolved
revans2
previously approved these changes
Jun 9, 2021
revans2
reviewed
Jun 9, 2021
sql-plugin/src/main/scala/com/nvidia/spark/rapids/GpuWindowExec.scala
Outdated
Show resolved
Hide resolved
revans2
previously approved these changes
Jun 9, 2021
abellina
approved these changes
Jun 9, 2021
revans2
approved these changes
Jun 9, 2021
build |
rongou
pushed a commit
to rongou/spark-rapids
that referenced
this pull request
Jun 9, 2021
* Tentative fix Signed-off-by: Mithun RK <[email protected]> * Delegate recognition of window-function exec to Shim. * Tentative support for Databricks 7.x * Fix formatting. * Moved commonality to base class for Gpu window execs. * Delegate to GpuBaseWindowExecMeta, from Databricks Shims. * Renamed test for RunningWindowFunctionExec. * Updated copyright date. * Fix copyright to include full year. * Switch from explicit cast to match() condition.
Thanks for the reviews, all. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fixes #1791.
A window-spec defined as
ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW
is termed a "running" window, because for each successive row in a row-group, the window increases in size by1
."Running" windows have special handling on Databricks, via a
RunningWindowFunctionExec
.spark-rapids
does not currently recognize or replace this exec with a GPU equivalent, thereby causing "running" window queries to fail thus:This commit aims to recognize and replace
RunningWindowFunctionExec
with a GPU implementation. In this first pass, it will delegate toGpuWindowExec
. This has the potential to be optimized further, (i.e. evaluated in a single pass), oncerapids/cudf
has the support for it.