Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
maropu committed Jun 16, 2020
1 parent 1251b68 commit f4497a6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Expand Up @@ -211,7 +211,7 @@ trait PredicateHelper extends Logging {
* @return the CNF result as sequence of disjunctive expressions. If the number of expressions
* exceeds threshold on converting `Or`, `Seq.empty` is returned.
*/
def conjunctiveNormalForm(condition: Expression): Seq[Expression] = {
protected def conjunctiveNormalForm(condition: Expression): Seq[Expression] = {
val postOrderNodes = postOrderTraversal(condition)
val resultStack = new mutable.Stack[Seq[Expression]]
val maxCnfNodeCount = SQLConf.get.maxCnfNodeCount
Expand Down
Expand Up @@ -1341,8 +1341,8 @@ object PushPredicateThroughJoin extends Rule[LogicalPlan] with PredicateHelper {
(rightFilterConditions ++ commonFilterCondition).
reduceLeftOption(And).map(Filter(_, newJoin)).getOrElse(newJoin)

case jt =>
throw new IllegalStateException(s"Unexpected join type: $jt")
case other =>
throw new IllegalStateException(s"Unexpected join type: $other")
}

// push down the join filter into sub query scanning if applicable
Expand Down Expand Up @@ -1377,8 +1377,8 @@ object PushPredicateThroughJoin extends Rule[LogicalPlan] with PredicateHelper {

Join(newLeft, newRight, joinType, newJoinCond, hint)

case jt =>
throw new IllegalStateException(s"Unexpected join type: $jt")
case other =>
throw new IllegalStateException(s"Unexpected join type: $other")
}
}
}
Expand Down

0 comments on commit f4497a6

Please sign in to comment.