// FIXME: DEMO
import org.apache.spark.sql.catalyst.optimizer.CollapseWindow
val logicalPlan = ???
val afterCollapseWindow = CollapseWindow(logicalPlan)
CollapseWindow Logical Optimization
CollapseWindow is a base logical optimization that FIXME.
CollapseWindow is part of the Operator Optimization fixed-point batch in the standard batches of the Catalyst Optimizer.
CollapseWindow is simply 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