sebbegg commented on issue #1619: URL: https://github.com/apache/sedona/issues/1619#issuecomment-2406990166
Did a bit of digging into what spark does in a spark-connect environment and to me it seems rather straight forward: https://github.com/apache/spark/blob/32232e9ed33bb16b93ad58cfde8b82e0f07c0970/python/pyspark/sql/connect/functions.py#L3899-L3901 Applying this to sedona: <img width="545" alt="image" src="https://github.com/user-attachments/assets/407d10e0-1f1f-4b1b-ae76-f879524575b7"> I think in this fashion it should be possible to make `call_sedona_function` spark-connect compatible: https://github.com/apache/sedona/blob/678da0044c7eacc48db68ff96a41cf08e6a5f2a8/python/sedona/sql/dataframe_api.py#L51-L74 The `call_function` only exists since spark 3.5.0, but the content seems simple enough to maybe integrate into sedona. Would you be willing to accept a PR if I'd find the time to investigate? My expectation is that spark-connect might become more common in the future. -- 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]
