dongjoon-hyun opened a new pull request, #605: URL: https://github.com/apache/spark-connect-swift/pull/605
### What changes were proposed in this pull request? This PR fixes `SparkSession.createDataFrame` to throw `SparkConnectError.invalidArgument` instead of trapping when `spark.sql.session.localRelationCacheThreshold` returned by the server is not a valid integer. ### Why are the changes needed? `createDataFrame(ipcStream:schema:)` force-unwraps `Int(...)` of the conf value, so a non-integer value crashes the process. The conf is an `intConf` in Spark (same as the Python client's `int(...)`), so no unit-suffix parsing is needed. ### Does this PR introduce _any_ user-facing change? No for valid servers. A non-integer value now throws `invalidArgument` instead of crashing. ### How was this patch tested? Added `SparkSessionTests.parseLocalRelationCacheThreshold`, which needs no server. ### Was this patch authored or co-authored using generative AI tooling? Generated-by: Claude Sonnet 5.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]
