You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by GitBox <gi...@apache.org> on 2020/04/10 08:24:29 UTC
[GitHub] [spark] Ngone51 commented on a change in pull request #28178:
[SPARK-31409][SQL][TEST] Fix failed tests due to result order changing when
enable AQE
Ngone51 commented on a change in pull request #28178: [SPARK-31409][SQL][TEST] Fix failed tests due to result order changing when enable AQE
URL: https://github.com/apache/spark/pull/28178#discussion_r406658610
##########
File path: sql/core/src/test/scala/org/apache/spark/sql/SQLQueryTestSuite.scala
##########
@@ -157,6 +157,8 @@ class SQLQueryTestSuite extends QueryTest with SharedSparkSession {
protected override def sparkConf: SparkConf = super.sparkConf
// Fewer shuffle partitions to speed up testing.
.set(SQLConf.SHUFFLE_PARTITIONS, 4)
+ // Disable BHJ optimization to avoid changing result order when we enable AQE
+ .set(SQLConf.AUTO_BROADCASTJOIN_THRESHOLD, -1.toLong)
Review comment:
Because we still want to test it with AQE as it's good for AQE to improve test coverage.
We don't have separate SQL-file based test cases for AQE. AQE is only a way of optimization, so it ideally should not have any specific requirements for the query itself.
----------------------------------------------------------------
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:
users@infra.apache.org
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org