You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by GitBox <gi...@apache.org> on 2021/11/06 02:34:33 UTC
[GitHub] [spark] c21 commented on a change in pull request #33522: [SPARK-36290][SQL] Pull out join condition
c21 commented on a change in pull request #33522:
URL: https://github.com/apache/spark/pull/33522#discussion_r744058276
##########
File path: sql/core/src/test/scala/org/apache/spark/sql/execution/WholeStageCodegenSuite.scala
##########
@@ -143,9 +143,10 @@ class WholeStageCodegenSuite extends QueryTest with SharedSparkSession
val schema = new StructType().add("k", IntegerType).add("v", StringType)
val smallDF = spark.createDataFrame(rdd, schema)
val df = spark.range(10).join(broadcast(smallDF), col("k") === col("id"))
- assert(df.queryExecution.executedPlan.find(p =>
- p.isInstanceOf[WholeStageCodegenExec] &&
- p.asInstanceOf[WholeStageCodegenExec].child.isInstanceOf[BroadcastHashJoinExec]).isDefined)
+ val broadcastHashJoin = df.queryExecution.executedPlan.find {
+ case WholeStageCodegenExec(ProjectExec(_, _: BroadcastHashJoinExec)) => true
Review comment:
wondering why we now need an extra project after join here? Can we remove it? The join seems not have complex key here.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org