dongjoon-hyun opened a new pull request, #535:
URL: https://github.com/apache/spark-connect-swift/pull/535

   ### What changes were proposed in this pull request?
   
   This PR aims to support the `counter_diff` window function.
   
   ```swift
   public func counter_diff(_ value: Column) -> Column
   public func counter_diff(_ value: Column, _ startTime: Column) -> Column
   ```
   
   ### Why are the changes needed?
   
   For feature parity with Apache Spark, which added `counter_diff` in `4.3.0`
   (`sql/api/src/main/scala/org/apache/spark/sql/functions.scala`). It converts 
a
   cumulative counter time series into the delta format and gracefully handles
   counter resets by returning `NULL`.
   
   ### Does this PR introduce _any_ user-facing change?
   
   No, this is a new function.
   
   ### How was this patch tested?
   
   Pass the CIs with newly added test cases.
   
   ### Was this patch authored or co-authored using generative AI tooling?
   
   Generated-by: Claude Opus 5


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


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

Reply via email to