Skip to content

Commit

Permalink
code refactor.
Browse files Browse the repository at this point in the history
  • Loading branch information
jiangxb1987 committed Mar 8, 2017
1 parent f487af3 commit 46da41e
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -408,8 +408,10 @@ object ViewHelper {

// Detect cyclic references from subqueries.
plan.expressions.foreach { expr =>
if (expr.isInstanceOf[SubqueryExpression]) {
checkCyclicViewReference(expr.asInstanceOf[SubqueryExpression].plan, path, viewIdent)
expr match {
case s: SubqueryExpression =>
checkCyclicViewReference(s.plan, path, viewIdent)
case _ => // Do nothing.
}
}
}
Expand Down

0 comments on commit 46da41e

Please sign in to comment.