vladanvasi-db commented on code in PR #48774:
URL: https://github.com/apache/spark/pull/48774#discussion_r1832710394
##########
sql/core/src/test/scala/org/apache/spark/sql/CollationSuite.scala:
##########
@@ -1598,11 +1598,38 @@ class CollationSuite extends DatasourceV2SQLBase with
AdaptiveSparkPlanHelper {
case b: HashJoin => b.leftKeys.head
}.head.isInstanceOf[CollationKey])
}
+
+ // Disable broadcast join to force sort merge join.
+ withSQLConf(SQLConf.AUTO_BROADCASTJOIN_THRESHOLD.key -> "-1") {
Review Comment:
Did exactly this, the asserts for `SparkPlan` nodes are refactored, however,
the `collationKey` check in the plan could not be refactored like the asserts,
so there are some duplications in the code, but not significant.
--
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]