uros-db opened a new pull request, #54333: URL: https://github.com/apache/spark/pull/54333
### What changes were proposed in this pull request? Add `Geometry` and `Geography` handling in `CatalystTypeConverters`, which fixes code paths that route through `convertToCatalyst - `Literal.create`, `ExpressionEvalHelper.create_row`, and recursive conversion of geospatial values nested inside Seq, Array, Map, or Row. ### Why are the changes needed? Previously, `Geometry` and `Geography` fell through to default conversion ending up returned as raw client objects instead of the proper internal Catalyst representations (`GeometryVal` and `GeographyVal`). Without these changes, certain code paths would silently pass through unconverted client-side objects, leading to type mismatches/exceptions downstream. ### Does this PR introduce _any_ user-facing change? No. ### How was this patch tested? Added unit tests for geospatial type conversion in `CatalystTypeConvertersSuite` and `LiteralExpressionSuite`. ### Was this patch authored or co-authored using generative AI tooling? Yes, Claude Opus 4.6. -- 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]
