dongjoon-hyun opened a new pull request, #527: URL: https://github.com/apache/spark-connect-swift/pull/527
### What changes were proposed in this pull request? This PR aims to support 5 URL functions (10 overloads). | Function | @since | Signatures | | --- | --- | --- | | `parse_url` | 3.5.0 | `(Column, String)`, `(Column, Column)`, `(Column, String, String)`, `(Column, Column, Column)` | | `try_parse_url` | 4.0.0 | `(Column, String)`, `(Column, Column)`, `(Column, String, String)`, `(Column, Column, Column)` | | `url_encode` | 3.5.0 | `(Column)` | | `url_decode` | 3.5.0 | `(Column)` | | `try_url_decode` | 4.0.0 | `(Column)` | The functions live in a new `UrlFunctions.swift`, matching the `url_funcs` group of the upstream `functions.scala` and the "URL Functions" section of the PySpark docs. Where the upstream `partToExtract` and `key` arguments are `Union[Column, str]`, both a `String` and a `Column` overload are provided, following the existing `variant_get` precedent, because these arguments are string literals such as `"HOST"` or `"QUERY"` in practice. ### Why are the changes needed? To improve API coverage. No URL function was available in this client. ### Does this PR introduce _any_ user-facing change? No, this is a new addition to the API. ### How was this patch tested? Pass the CIs with the newly added test suite, `UrlFunctionsTests`. ### 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]
