Exists — Correlated Predicate Subquery Expression¶
Exists
is a SubqueryExpression and a predicate expression.
Exists
is <
-
ResolveSubquery
is requested to resolveSubQueries -
PullupCorrelatedPredicates
is requested to spark-sql-PullupCorrelatedPredicates.md#rewriteSubQueries[rewriteSubQueries] -
AstBuilder
is requested to sql/AstBuilder.md#visitExists[visitExists] (in SQL statements)
[[Unevaluable]] Exists
is unevaluable expression.
[[eval]][[doGenCode]] When requested to evaluate or doGenCode
, Exists
simply reports a UnsupportedOperationException
.
Cannot evaluate expression: [this]
[[nullable]] Exists
is never Expression.md#nullable[nullable].
[[toString]] Exists
uses the following text representation:
exists#[exprId] [conditionString]
[[canonicalized]] When requested for a canonicalized version, Exists
<
Creating Instance¶
Exists
takes the following to be created:
- [[plan]] Subquery LogicalPlan
- [[children]] Child Expressions
- [[exprId]]
ExprId