pruneFilterProjectRaw(
relation: LogicalRelation,
projects: Seq[NamedExpression],
filterPredicates: Seq[Expression],
scanBuilder: (Seq[Attribute], Seq[Expression], Seq[Filter]) => RDD[InternalRow]): SparkPlan
DataSourceStrategy Execution Planning Strategy
DataSourceStrategy is an execution planning strategy (of SparkPlanner) that converts LogicalRelation logical operator to RowDataSourceScanExec physical operator.
| Logical Operator | Selection Requirements |
|---|---|
|
|
|
Matches |
|
|
|
Matches |
|
Note
|
DataSourceStrategy uses PhysicalOperation to destructure a logical plan.
|
Creating RowDataSourceScanExec (under FilterExec and ProjectExec) — pruneFilterProjectRaw Internal Method
pruneFilterProjectRaw creates a RowDataSourceScanExec (possibly as a child of FilterExec that in turn could be a child of ProjectExec).
|
Note
|
pruneFilterProjectRaw is used when DataSourceStrategy executes (and selects RowDataSourceScanExec per LogicalRelation).
|