@@ -143,12 +143,9 @@ class GlutenBroadcastJoinSuite extends BroadcastJoinSuite with GlutenTestsCommon
143143 // INNER JOIN && t1Size < t2Size => BuildLeft
144144 assertJoinBuildSide(" SELECT /*+ MAPJOIN(t1, t2) */ * FROM t1 JOIN t2" , blt, BuildLeft )
145145 // FULL JOIN && t1Size < t2Size => BuildLeft
146- assertJoinBuildSide(
147- " SELECT /*+ MAPJOIN(t1, t2) */ * FROM t1 FULL JOIN t2 ON t1.key < t2.key" ,
148- bl,
149- BuildLeft )
146+ assertJoinBuildSide(" SELECT /*+ MAPJOIN(t1, t2) */ * FROM t1 FULL JOIN t2" , bl, BuildLeft )
150147 // FULL OUTER && t1Size < t2Size => BuildLeft
151- assertJoinBuildSide(" SELECT * FROM t1 FULL OUTER JOIN t2 ON t1.key < t2.key " , bl, BuildLeft )
148+ assertJoinBuildSide(" SELECT * FROM t1 FULL OUTER JOIN t2" , bl, BuildLeft )
152149 // LEFT JOIN => BuildRight
153150 assertJoinBuildSide(" SELECT /*+ MAPJOIN(t1, t2) */ * FROM t1 LEFT JOIN t2" , blt, BuildRight )
154151 // RIGHT JOIN => BuildLeft
@@ -160,13 +157,10 @@ class GlutenBroadcastJoinSuite extends BroadcastJoinSuite with GlutenTestsCommon
160157 // INNER JOIN && broadcast(t2) => BuildRight
161158 assertJoinBuildSide(" SELECT /*+ MAPJOIN(t2) */ * FROM t1 JOIN t2" , blt, BuildRight )
162159 // FULL OUTER && broadcast(t1) => BuildLeft
163- assertJoinBuildSide(
164- " SELECT /*+ MAPJOIN(t1) */ * FROM t1 FULL OUTER JOIN t2 on t1.key < t2.key" ,
165- bl,
166- BuildLeft )
160+ assertJoinBuildSide(" SELECT /*+ MAPJOIN(t1) */ * FROM t1 FULL OUTER JOIN t2" , bl, BuildLeft )
167161 // FULL OUTER && broadcast(t2) => BuildRight
168162 assertJoinBuildSide(
169- " SELECT /*+ MAPJOIN(t2) */ * FROM t1 FULL OUTER JOIN t2 on t1.key < t2.key " ,
163+ " SELECT /*+ MAPJOIN(t2) */ * FROM t1 FULL OUTER JOIN t2" ,
170164 bl,
171165 BuildRight )
172166 // LEFT JOIN && broadcast(t1) => BuildLeft
@@ -200,11 +194,8 @@ class GlutenBroadcastJoinSuite extends BroadcastJoinSuite with GlutenTestsCommon
200194 /* ######## test cases for non-equal join ######### */
201195 withSQLConf(SQLConf .CROSS_JOINS_ENABLED .key -> " true" ) {
202196 // For full outer join, prefer to broadcast the smaller side.
203- assertJoinBuildSide(" SELECT * FROM t1 FULL OUTER JOIN t2 on t1.key < t2.key" , bl, BuildLeft )
204- assertJoinBuildSide(
205- " SELECT * FROM t2 FULL OUTER JOIN t1 on t1.key < t2.key" ,
206- bl,
207- BuildRight )
197+ assertJoinBuildSide(" SELECT * FROM t1 FULL OUTER JOIN t2" , bl, BuildLeft )
198+ assertJoinBuildSide(" SELECT * FROM t2 FULL OUTER JOIN t1" , bl, BuildRight )
208199
209200 // For inner join, prefer to broadcast the smaller side, if broadcast-able.
210201 withSQLConf(SQLConf .AUTO_BROADCASTJOIN_THRESHOLD .key -> (t2Size + 1 ).toString()) {
0 commit comments