// FIXME Example of DataSourceAnalysis
import org.apache.spark.sql.execution.datasources.DataSourceAnalysis
val rule = DataSourceAnalysis(spark.sessionState.conf)
val plan = FIXME
rule(plan)
DataSourceAnalysis PostHoc Logical Resolution Rule
DataSourceAnalysis
is a posthoc logical resolution rule that the default and Hive-specific logical query plan analyzers use to FIXME.
Source Operator | Target Operator | Description |
---|---|---|
CreateTable (isDatasourceTable + no query) |
||
CreateTable (isDatasourceTable + a resolved query) |
||
InsertIntoDir (non-hive provider) |
||
Technically, DataSourceAnalysis
is a Catalyst rule for transforming logical plans, i.e. Rule[LogicalPlan]
.
Executing Rule — apply
Method
apply(plan: LogicalPlan): LogicalPlan
Note
|
apply is part of the Rule Contract to execute (apply) a rule on a TreeNode (e.g. LogicalPlan).
|
apply
…FIXME