dongjoon-hyun opened a new pull request, #447: URL: https://github.com/apache/spark-connect-swift/pull/447
### What changes were proposed in this pull request? This PR improves the argument conversion of `spark.sql(_:args:)` parameter binding. 1. Replace the crashing `value as! String` fallback with throwing `SparkConnectError.InvalidType`. 2. Support more types: `Float`, `Double`, `Decimal`, `Data` (binary), `Date` (timestamp), and `nil` (null). ### Why are the changes needed? Previously, unsupported argument types (including `Float` and `Double`) crashed the process via a force cast instead of returning a catchable error. ### Does this PR introduce _any_ user-facing change? No. Unsupported argument types now throw `SparkConnectError.InvalidType` instead of crashing. ### 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]
