peter-toth commented on code in PR #52835:
URL: https://github.com/apache/spark/pull/52835#discussion_r2485989939


##########
sql/catalyst/src/test/scala/org/apache/spark/sql/catalyst/optimizer/MergeScalarSubqueriesSuite.scala:
##########
@@ -568,14 +568,14 @@ class MergeScalarSubqueriesSuite extends PlanTest {
     val subquery5 = ScalarSubquery(testRelation.select((Symbol("a") + 
2).as("a_plus2_2")))
     val subquery6 = ScalarSubquery(testRelation.select(Symbol("b").as("b_2")))
     val originalQuery = testRelation
-      .select(

Review Comment:
   This minor test chnage in the order of subqueries is needed because the 
modified `MergeScalarSubqueries` encounters them in different order. So we 
either change the expected query to expect `a_plus1_2` and `a_plus2_2` or 
reorder the subqueries in the query like here. I applied the latter.



-- 
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