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

   ### What changes were proposed in this pull request?
   
   This PR aims to support the following 8 conditional SQL functions.
   
   - `coalesce`
   - `ifnull`
   - `nanvl`
   - `nullif`
   - `nullifzero`
   - `nvl`
   - `nvl2`
   - `zeroifnull`
   
   In addition, this PR moves the existing `when` functions from 
`Functions.swift` into the new `ConditionalFunctions.swift` file together with 
their test cases.
   
   ### Why are the changes needed?
   
   To improve the feature parity with the other Apache Spark Connect clients 
like PySpark and Scala.
   
   Like `HashFunctions.swift`, these functions are grouped into a dedicated 
file instead of `Functions.swift` in order to follow the existing per-category 
layout of this repository. The resulting file matches the `Conditional 
Functions` group of the PySpark API reference, which consists of `coalesce`, 
`ifnull`, `nanvl`, `nullif`, `nullifzero`, `nvl`, `nvl2`, `when`, and 
`zeroifnull`.
   
   ### Does this PR introduce _any_ user-facing change?
   
   No, the new functions are added to the unreleased branch, and moving `when` 
to another file does not change the public 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 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