MaxGekk commented on a change in pull request #26813: [SPARK-30188][SQL]
Resolve the failed unit tests when enable AQE
URL: https://github.com/apache/spark/pull/26813#discussion_r369743505
##########
File path: sql/core/src/test/scala/org/apache/spark/sql/SQLQuerySuite.scala
##########
@@ -191,7 +192,7 @@ class SQLQuerySuite extends QueryTest with
SharedSparkSession {
val actual = unindentAndTrim(
hiveResultString(df.queryExecution.executedPlan).mkString("\n"))
val expected = unindentAndTrim(output)
- assert(actual === expected)
+ assert(actual.sorted === expected.sorted)
Review comment:
Why do you sort them? After the changes, output of failed tests is unusable.
Instead of `"[true]" did not equal "[false]"` I am getting `"[ertu]" did not
equal "[aefls]"`
----------------------------------------------------------------
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]
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]