Skip to content

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

Signature
apply(
  plan: LogicalPlan): LogicalPlan

apply is part of the Rule abstraction.

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: