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

   ### What changes were proposed in this pull request?
   
   This PR aims to support `pivot` in `GroupedData`.
   
   ```swift
   let df2 = try await df.groupBy("year")
       .pivot("course", ["dotNET", "Java"])
       .agg("sum(earnings)")
   ```
   
   If `values` is not given, the server computes the distinct values of the 
pivot
   column. Like the Scala client, `pivot` is only allowed after `groupBy` and
   throws `SparkConnectError.UnsupportedOperation` otherwise.
   
   ### Why are the changes needed?
   
   To support the standard `pivot` API like the Scala and Python clients.
   
   ### Does this PR introduce _any_ user-facing change?
   
   No, this is a new API.
   
   ### 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 Fable 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