Skip to content

Commit

Permalink
add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
wzhfy committed Mar 28, 2017
1 parent d3a174a commit 4739c0b
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,10 @@ trait PredicateHelper {
* Returns true iff `expr` could be evaluated as a condition within join.
*/
protected def canEvaluateWithinJoin(expr: Expression): Boolean = expr match {
case l: ListQuery => false
case l: ListQuery =>
// Now pulling up IN predicates is deferred to `RewritePredicateSubquery`. As a result,
// `ListQuery`'s children can be empty before that rule and falls into the next case.
false
case e: SubqueryExpression =>
// non-correlated subquery will be replaced as literal
e.children.isEmpty
Expand Down

0 comments on commit 4739c0b

Please sign in to comment.