Skip to content

Commit

Permalink
Remove isGpuBroadcastNestedLoopJoin from shims (#1053)
Browse files Browse the repository at this point in the history
Signed-off-by: Andy Grove <andygrove@nvidia.com>
  • Loading branch information
andygrove authored Nov 2, 2020
1 parent e4d9efc commit eb1efdf
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -118,13 +118,6 @@ class Spark300Shims extends SparkShims {
}
}

override def isGpuBroadcastNestedLoopJoin(plan: SparkPlan): Boolean = {
plan match {
case _: GpuBroadcastNestedLoopJoinExecBase => true
case _ => false
}
}

override def isGpuShuffledHashJoin(plan: SparkPlan): Boolean = {
plan match {
case _: GpuShuffledHashJoinExec => true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@ trait SparkShims {
def getSparkShimVersion: ShimVersion
def isGpuHashJoin(plan: SparkPlan): Boolean
def isGpuBroadcastHashJoin(plan: SparkPlan): Boolean
def isGpuBroadcastNestedLoopJoin(plan: SparkPlan): Boolean
def isGpuShuffledHashJoin(plan: SparkPlan): Boolean
def isBroadcastExchangeLike(plan: SparkPlan): Boolean
def isShuffleExchangeLike(plan: SparkPlan): Boolean
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ import com.nvidia.spark.rapids.TestUtils.findOperators
import org.apache.spark.SparkConf
import org.apache.spark.sql.functions.broadcast
import org.apache.spark.sql.internal.SQLConf
import org.apache.spark.sql.rapids.execution.GpuBroadcastNestedLoopJoinExecBase

class BroadcastNestedLoopJoinSuite extends SparkQueryCompareTestSuite {

Expand All @@ -36,7 +37,7 @@ class BroadcastNestedLoopJoinSuite extends SparkQueryCompareTestSuite {
df3.collect()
val plan = df3.queryExecution.executedPlan

val nljCount = findOperators(plan, ShimLoader.getSparkShims.isGpuBroadcastNestedLoopJoin)
val nljCount = findOperators(plan, _.isInstanceOf[GpuBroadcastNestedLoopJoinExecBase])
assert(nljCount.size === 1)
}, conf)
}
Expand All @@ -53,7 +54,7 @@ class BroadcastNestedLoopJoinSuite extends SparkQueryCompareTestSuite {
df3.collect()
val plan = df3.queryExecution.executedPlan

val nljCount = findOperators(plan, ShimLoader.getSparkShims.isGpuBroadcastNestedLoopJoin)
val nljCount = findOperators(plan, _.isInstanceOf[GpuBroadcastNestedLoopJoinExecBase])

ShimLoader.getSparkShims.getSparkShimVersion match {
case SparkShimVersion(3, 0, 0) =>
Expand Down

0 comments on commit eb1efdf

Please sign in to comment.