@@ -63,7 +63,6 @@ class GlutenFunctionValidateSuite extends GlutenClickHouseWholeStageTransformerS
63
63
.set(" spark.io.compression.codec" , " snappy" )
64
64
.set(" spark.sql.shuffle.partitions" , " 5" )
65
65
.set(" spark.sql.autoBroadcastJoinThreshold" , " 10MB" )
66
- .set(" spark.gluten.sql.supported.collapseNestedFunctions" , " and,or" )
67
66
}
68
67
69
68
override def beforeAll (): Unit = {
@@ -208,10 +207,6 @@ class GlutenFunctionValidateSuite extends GlutenClickHouseWholeStageTransformerS
208
207
spark.catalog.createTable(" url_table" , urlFilePath, fileFormat)
209
208
}
210
209
211
- override def afterAll (): Unit = {
212
- sparkConf.set(" spark.gluten.sql.supported.collapseNestedFunctions" , " " )
213
- }
214
-
215
210
test(" Test get_json_object 1" ) {
216
211
runQueryAndCompare(" SELECT get_json_object(string_field1, '$.a') from json_test" ) {
217
212
checkGlutenOperatorMatch[ProjectExecTransformer ]
@@ -399,21 +394,15 @@ class GlutenFunctionValidateSuite extends GlutenClickHouseWholeStageTransformerS
399
394
}
400
395
false
401
396
}
402
- try {
403
- withSQLConf((" spark.gluten.sql.supported.collapseNestedFunctions" , " and,or" )) {
404
- runQueryAndCompare(
405
- " SELECT count(1) from json_test where int_field1 = 5 and double_field1 > 1.0" +
406
- " and string_field1 is not null" ) {
407
- x => assert(checkCollapsedFunctions(x.queryExecution.executedPlan, " and" , 5 ))
408
- }
409
- runQueryAndCompare(
410
- " SELECT count(1) from json_test where int_field1 = 5 or double_field1 > 1.0" +
411
- " or string_field1 is not null" ) {
412
- x => assert(checkCollapsedFunctions(x.queryExecution.executedPlan, " or" , 3 ))
413
- }
414
- }
415
- } finally {
416
- sparkConf.set(" spark.gluten.sql.supported.collapseNestedFunctions" , " " )
397
+ runQueryAndCompare(
398
+ " SELECT count(1) from json_test where int_field1 = 5 and double_field1 > 1.0" +
399
+ " and string_field1 is not null" ) {
400
+ x => assert(checkCollapsedFunctions(x.queryExecution.executedPlan, " and" , 5 ))
401
+ }
402
+ runQueryAndCompare(
403
+ " SELECT count(1) from json_test where int_field1 = 5 or double_field1 > 1.0" +
404
+ " or string_field1 is not null" ) {
405
+ x => assert(checkCollapsedFunctions(x.queryExecution.executedPlan, " or" , 3 ))
417
406
}
418
407
}
419
408
0 commit comments