ResolveDefaultColumns Logical Resolution Rule¶
ResolveDefaultColumns is a logical resolution rule (a Rule to transform a LogicalPlan) that resolves the following operators (top-down):
ResolveDefaultColumns is executed only when spark.sql.defaultColumn.enabled is enabled.
ResolveDefaultColumns is part of the Resolution fixed-point rule batch of the Analyzer.
ResolveDefaultColumns takes the following to be created:
ResolveDefaultColumns is created when:
Analyzeris requested for the batches
apply( plan: LogicalPlan): LogicalPlan
apply is part of the Rule abstraction.
ResolveDefaultColumns does nothing and returns the logical plan in-tact when spark.sql.defaultColumn.enabled is disabled.
With spark.sql.defaultColumn.enabled enabled,
apply resolves the following operators (top-down):
For InsertIntoStatements that insertsFromInlineTable,
For InsertIntoStatements with a Project query that is not a