ulysses-you commented on a change in pull request #32236:
URL: https://github.com/apache/spark/pull/32236#discussion_r619735173



##########
File path: 
sql/core/src/test/scala/org/apache/spark/sql/execution/PlannerSuite.scala
##########
@@ -775,8 +775,8 @@ class PlannerSuite extends SharedSparkSession with 
AdaptiveSparkPlanHelper {
       checkReusedExchangeOutputPartitioningRewrite(df1.union(df2), 
classOf[HashPartitioning])
 
       // ReusedExchange is RangePartitioning
-      val df3 = Seq(1 -> "a").toDF("i", "j").orderBy($"i")
-      val df4 = Seq(1 -> "a").toDF("i", "j").orderBy($"i")
+      val df3 = Seq(1 -> "a", 2 -> "b").toDF("i", "j").orderBy($"i")
+      val df4 = Seq(1 -> "a", 2 -> "b").toDF("i", "j").orderBy($"i")

Review comment:
       `Seq(1 -> "a").toDF("i", "j")` output partitioning number is 1 so it's 
`SinglePartition`.




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

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