summaryzb commented on code in PR #50494:
URL: https://github.com/apache/spark/pull/50494#discussion_r2026117773
##########
sql/core/src/test/scala/org/apache/spark/sql/QueryTest.scala:
##########
@@ -285,7 +285,7 @@ object QueryTest extends Assertions {
df: DataFrame,
expectedAnswer: Seq[Row],
checkToRDD: Boolean = true): Option[String] = {
- val isSorted = df.logicalPlan.collect { case s: logical.Sort => s
}.nonEmpty
+ val isSorted = df.logicalPlan.collectFirst { case s: logical.Sort => s
}.nonEmpty
Review Comment:
Thanks for offering a new idea, maybe it's better to stay the uniffle style
in this pr, since the computational complexity is the same
--
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]