dongjoon-hyun opened a new pull request, #514: URL: https://github.com/apache/spark-connect-swift/pull/514
### What changes were proposed in this pull request? This PR aims to support the following 7 hash functions in a new `HashFunctions.swift` file. | Function | Signature | Since | | -------- | --------- | ----- | | `md5` | `(Column) -> Column` | 1.5.0 | | `sha1` | `(Column) -> Column` | 1.5.0 | | `sha` | `(Column) -> Column` | 3.5.0 | | `sha2` | `(Column, Int32) -> Column` | 1.5.0 | | `crc32` | `(Column) -> Column` | 1.5.0 | | `hash` | `(Column...) -> Column` | 2.0.0 | | `xxhash64` | `(Column...) -> Column` | 3.0.0 | Note that the existing `CRC32` and `SHA256` structs are internal utilities used by `SparkConnectClient+Artifact.swift` to compute client-side checksums during artifact upload. They are unrelated to these SQL functions and are untouched. ### Why are the changes needed? For feature parity with Apache Spark's `functions.scala` and PySpark's `pyspark.sql.functions`. The `hash_funcs` group was previously not covered by this Swift client at all. ### Does this PR introduce _any_ user-facing change? No, this is a new feature addition to the public API. There is no behavior change in the existing APIs. ### 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]
