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

UnresolvedOrdinal

UnresolvedOrdinal Unevaluable Leaf Expression

UnresolvedOrdinal is a leaf expression that represents a single integer literal in Sort logical operators (in SortOrder ordering expressions) and in Aggregate logical operators (in grouping expressions) in a logical plan.

UnresolvedOrdinal is created when SubstituteUnresolvedOrdinals logical resolution rule is executed.

UnresolvedOrdinal takes a single ordinal integer when created.

UnresolvedOrdinal is an unevaluable expression and cannot be evaluated (i.e. produce a value given an internal row).

Note
An unevaluable expression cannot be evaluated to produce a value (neither in interpreted nor code-generated expression evaluations) and has to be resolved (replaced) to some other expressions or logical operators at analysis or optimization phases or they fail analysis.

UnresolvedOrdinal can never be resolved (and is replaced at analysis phase).

Note
UnresolvedOrdinal is resolved when ResolveOrdinalInOrderByAndGroupBy logical resolution rule is executed.

UnresolvedOrdinal has no representation in SQL.

Note
UnresolvedOrdinal in GROUP BY ordinal position is not allowed for a select list with a star (*).
赞(0) 打赏
未经允许不得转载:spark技术分享 » UnresolvedOrdinal
分享到: 更多 (0)

关注公众号:spark技术分享

联系我们联系我们

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

支付宝扫一扫打赏

微信扫一扫打赏