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

SubqueryAlias

SubqueryAlias Unary Logical Operator

SubqueryAlias is a unary logical operator that represents an aliased subquery (i.e. the child logical query plan with the alias in the output schema).

SubqueryAlias is created when:

SubqueryAlias simply requests the child logical operator for the canonicalized version.

When requested for output schema attributes, SubqueryAlias requests the child logical operator for them and adds the alias as a qualifier.

Note
EliminateSubqueryAliases logical optimization eliminates (removes) SubqueryAlias operators from a logical query plan.
Note
RewriteCorrelatedScalarSubquery logical optimization rewrites correlated scalar subqueries with SubqueryAlias operators.

Catalyst DSL — subquery And as Operators

subquery and as operators in Catalyst DSL create a SubqueryAlias logical operator, e.g. for testing or Spark SQL internals exploration.

Creating SubqueryAlias Instance

SubqueryAlias takes the following when created:

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

关注公众号:spark技术分享

联系我们联系我们

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

支付宝扫一扫打赏

微信扫一扫打赏