-
Notifications
You must be signed in to change notification settings - Fork 283
[AutoSparkUT] Fix CollectLimitExec GPU replacement for Command results (SPARK-19650) #14398
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -193,6 +193,21 @@ class GpuCollectLimitMeta( | |
| override val childParts: scala.Seq[PartMeta[_]] = | ||
| Seq(GpuOverrides.wrapPart(collectLimit.outputPartitioning, conf, Some(this))) | ||
|
|
||
| override def tagPlanForGpu(): Unit = { | ||
| // Use full class name to avoid compile errors on Spark versions | ||
| // where CommandResultExec (added in 3.2) does not exist. | ||
| val childClass = collectLimit.child.getClass.getName | ||
| if (childClass.endsWith( | ||
| ".execution.CommandResultExec") || | ||
| childClass.endsWith( | ||
| ".execution.command.ExecutedCommandExec")) { | ||
| willNotWorkOnGpu( | ||
| s"child ${collectLimit.child.getClass.getSimpleName}" + | ||
| " already provides pre-computed results; replacing" + | ||
| " CollectLimit would trigger an unnecessary Spark job") | ||
| } | ||
|
Comment on lines
+196
to
+208
|
||
| } | ||
|
|
||
| override def convertToGpu(): GpuExec = | ||
| GpuGlobalLimitExec(collectLimit.limit, | ||
| GpuShuffleExchangeExec( | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.