alamb commented on issue #6747:
URL: https://github.com/apache/datafusion/issues/6747#issuecomment-2090266602

   🤔  it seems like spark's API is like 
   
   > count("dt").over(w).alias("count")).show()
   
   
https://stackoverflow.com/questions/32769328/how-to-use-window-functions-in-pyspark-using-dataframes
   
   So maybe for DataFusion it could look like
   
   ```rust
      let w = Window::new()
        .partition_by(col("id"))
        .order_by(col("dt"));
   
       let lag_expr = lag(col("array_col"))
          .over(w)
   ```
   
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscr...@datafusion.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscr...@datafusion.apache.org
For additional commands, e-mail: github-h...@datafusion.apache.org

Reply via email to