viirya commented on code in PR #60536:
URL: https://github.com/apache/spark/pull/60536#discussion_r4581196748


##########
sql/core/src/test/scala/org/apache/spark/sql/SortMergeAsOfJoinSuite.scala:
##########
@@ -2594,4 +2597,43 @@ class SortMergeAsOfJoinSuite extends QueryTest
       condition = "INTERNAL_ERROR",
       parameters = Map("message" -> "The Nearest AS-OF join has no ordered 
scan"))
   }
+
+  test("SPARK-61754: the interpreted join does not serialize plan nodes into 
tasks") {
+    // The RDD that the join adds on top of its children's RDDs is serialized 
into every task
+    // binary. A plan node written with it would drag its whole child subtree 
along.
+    def serializedPlanNodes(rdd: RDD[_], inputs: Seq[RDD[_]]): Seq[String] = {

Review Comment:
   This copies the helper from `WholeStageCodegenSuite`. That suite's 
SPARK-61666 test leaves out this case on purpose: "Only the generated as-of 
join: the interpreted one still captures the join node in its closure, to build 
its scanner." This PR makes that comment stale. Could we widen that block 
instead and drop this test? For example, loop over `{default, 
WHOLESTAGE_CODEGEN_ENABLED=false} x {AQE off, on} x {"backward", "nearest"}`, 
passing `direction = direction`. I tried this locally: it passes with this 
change and fails without it. It also covers the codegen-off path, which this 
test does not. Non-blocking.



-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to