Github user icexelloss commented on a diff in the pull request:

    https://github.com/apache/spark/pull/21082#discussion_r194133638
  
    --- Diff: 
sql/core/src/main/scala/org/apache/spark/sql/execution/SparkStrategies.scala ---
    @@ -424,6 +424,21 @@ abstract class SparkStrategies extends 
QueryPlanner[SparkPlan] {
         }
       }
     
    +  object Window extends Strategy {
    +    def apply(plan: LogicalPlan): Seq[SparkPlan] = plan match {
    +      case PhysicalWindow(
    +        WindowFunctionType.SQL, windowExprs, partitionSpec, orderSpec, 
child) =>
    +        execution.window.WindowExec(
    +          windowExprs, partitionSpec, orderSpec, planLater(child)) :: Nil
    +
    +      case PhysicalWindow(
    +        WindowFunctionType.Python, windowExprs, partitionSpec, orderSpec, 
child) =>
    +        execution.python.WindowInPandasExec(
    +          windowExprs, partitionSpec, orderSpec, planLater(child)) :: Nil
    --- End diff --
    
    Added


---

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to