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

View

View Unary Logical Operator

View is a logical operator with a single child logical operator.

View is created exclusively when SessionCatalog is requested to find a relation in the catalogs (e.g. when DescribeTableCommand logical command is executed and the table type is VIEW).

View is a MultiInstanceRelation so a new instance will be created to appear multiple times in a physical query plan. When requested for a new instance, View creates new instances of the output attributes.

View is considered resolved only when the child is.

View has the following simple description (with state prefix):

Note
View is resolved by ResolveRelations logical resolution.
Note
AliasViewChild logical analysis rule makes sure that the output of a View matches the output of the child logical operator.
Note
EliminateView logical optimization removes (eliminates) View operators from a logical query plan.

Creating View Instance

View takes the following when created:

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

关注公众号:spark技术分享

联系我们联系我们

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

支付宝扫一扫打赏

微信扫一扫打赏