AddMetadataColumns Logical Resolution Rule¶
AddMetadataColumns adds metadata columns to logical operators with metadata columns defined
AddMetadataColumns is a Rule to transform a LogicalPlan (Rule[LogicalPlan]).
AddMetadataColumns is part of the Resolution batch of the Analyzer.
Executing Rule¶
apply adds metadata columns to logical operators (with metadata columns defined).
addMetadataCol¶
addMetadataCol(
plan: LogicalPlan,
requiredAttrIds: Set[ExprId]): LogicalPlan
addMetadataCol...FIXME
hasMetadataCol¶
hasMetadataCol(
plan: LogicalPlan): Boolean
hasMetadataCol is positive (true) when there is at least one Attribute expression (among the Expressions of the given LogicalPlan) for which either holds true:
- It is a metadata column
- ExprId of this
Attributeis among the metadata output attributes of any of the children of the given LogicalPlan