Skip to content

Commit

Permalink
Update CheckAnalysis.scala
Browse files Browse the repository at this point in the history
  • Loading branch information
cloud-fan committed Apr 19, 2021
1 parent 03f4487 commit 652b854
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -934,7 +934,7 @@ trait CheckAnalysis extends PredicateHelper with LookupCatalog {
def failOnUnsupportedCorrelatedPredicate(predicates: Seq[Expression], p: LogicalPlan): Unit = {
if (predicates.nonEmpty) {
// Report a non-supported case as an exception
failAnalysis(s"Correlated column is not allowed in predicate " +
failAnalysis("Correlated column is not allowed in predicate " +
s"${predicates.map(_.sql).mkString}:\n$p")
}
}
Expand Down Expand Up @@ -1017,7 +1017,7 @@ trait CheckAnalysis extends PredicateHelper with LookupCatalog {
// non-equality correlated predicates.
case a: Aggregate =>
failOnInvalidOuterReference(a)
failOnUnsupportedCorrelatedPredicate(unsupportedPredicates, a)
failOnUnsupportedCorrelatedPredicate(unsupportedPredicates.toSeq, a)

// Join can host correlated expressions.
case j @ Join(left, right, joinType, _, _) =>
Expand Down

0 comments on commit 652b854

Please sign in to comment.