Skip to content

Commit

Permalink
increase threshold and test case
Browse files Browse the repository at this point in the history
  • Loading branch information
gengliangwang committed Jun 5, 2020
1 parent a216cf8 commit a9a5c0b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -555,7 +555,7 @@ object SQLConf {
.intConf
.checkValue(_ >= 0,
"The depth of the maximum rewriting conjunction normal form must be positive.")
.createWithDefault(20)
.createWithDefault(256)

val ESCAPED_STRING_LITERALS = buildConf("spark.sql.parser.escapedStringLiterals")
.internal()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1293,7 +1293,14 @@ class FilterPushdownSuite extends PlanTest {
val left = testRelation.where(
('a === 5 || 'a === 2 || 'a === 1)).subquery('x)
val right = testRelation.where(
('a >= 2 && 'a <= 3) || ('a >= 1 && 'a <= 14) || ('a >= 9 && 'a <= 27)).subquery('y)
('a >= 2 || 'a >= 1 || 'a >= 9) &&
('a >= 2 || 'a >= 1 || 'a <= 27) &&
('a >= 2 || 'a <=14 || 'a >= 9) &&
('a >= 2 || 'a <=14 || 'a <= 27) &&
('a <= 3 || 'a >= 1 || 'a >= 9) &&
('a <= 3 || 'a >= 1 || 'a <= 27) &&
('a <= 3 || 'a <=14 || 'a >= 9) &&
('a <= 3 || 'a <=14 || 'a <= 27)).subquery('y)
val correctAnswer = left.join(right, condition = Some(joinCondition)).analyze

comparePlans(optimized, correctAnswer)
Expand Down

0 comments on commit a9a5c0b

Please sign in to comment.