关注 spark技术分享,
撸spark源码 玩spark最佳实践

Exists

Exists — Correlated Predicate Subquery Expression

Exists is a SubqueryExpression and a predicate expression (i.e. the result data type is always boolean).

Exists is created when:

  1. ResolveSubquery is requested to resolveSubQueries

  2. PullupCorrelatedPredicates is requested to rewriteSubQueries

  3. AstBuilder is requested to visitExists (in SQL statements)

Exists cannot be evaluated, i.e. produce a value given an internal row.


When requested to evaluate or doGenCode, Exists simply reports a UnsupportedOperationException.

Exists is never nullable.

Exists uses the following text representation:

When requested for a canonicalized version, Exists creates a new instance with…​FIXME

Creating Exists Instance

Exists takes the following when created:

赞(0) 打赏
未经允许不得转载:spark技术分享 » Exists
分享到: 更多 (0)

关注公众号:spark技术分享

联系我们联系我们

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

微信扫一扫打赏