Skip to content

Commit 8952a6a

Browse files
committed
increase threshold and test case
1 parent b8853a0 commit 8952a6a

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

sql/catalyst/src/main/scala/org/apache/spark/sql/internal/SQLConf.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -556,7 +556,7 @@ object SQLConf {
556556
.intConf
557557
.checkValue(_ >= 0,
558558
"The depth of the maximum rewriting conjunction normal form must be positive.")
559-
.createWithDefault(20)
559+
.createWithDefault(256)
560560

561561
val ESCAPED_STRING_LITERALS = buildConf("spark.sql.parser.escapedStringLiterals")
562562
.internal()

sql/catalyst/src/test/scala/org/apache/spark/sql/catalyst/optimizer/FilterPushdownSuite.scala

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1293,7 +1293,14 @@ class FilterPushdownSuite extends PlanTest {
12931293
val left = testRelation.where(
12941294
('a === 5 || 'a === 2 || 'a === 1)).subquery('x)
12951295
val right = testRelation.where(
1296-
('a >= 2 && 'a <= 3) || ('a >= 1 && 'a <= 14) || ('a >= 9 && 'a <= 27)).subquery('y)
1296+
('a >= 2 || 'a >= 1 || 'a >= 9) &&
1297+
('a >= 2 || 'a >= 1 || 'a <= 27) &&
1298+
('a >= 2 || 'a <=14 || 'a >= 9) &&
1299+
('a >= 2 || 'a <=14 || 'a <= 27) &&
1300+
('a <= 3 || 'a >= 1 || 'a >= 9) &&
1301+
('a <= 3 || 'a >= 1 || 'a <= 27) &&
1302+
('a <= 3 || 'a <=14 || 'a >= 9) &&
1303+
('a <= 3 || 'a <=14 || 'a <= 27)).subquery('y)
12971304
val correctAnswer = left.join(right, condition = Some(joinCondition)).analyze
12981305

12991306
comparePlans(optimized, correctAnswer)

0 commit comments

Comments
 (0)