kylebarron commented on PR #13797: URL: https://github.com/apache/datafusion/pull/13797#issuecomment-2546221849
I also validated in https://github.com/geoarrow/geoarrow-rs/pull/951 that this is now working for storing geospatial geometries in a dense union! Mirroring the [PostGIS `ST_GeomFromText`](https://postgis.net/docs/ST_GeomFromText.html): ``` SELECT ST_GeomFromText('LINESTRING(-71.160281 42.258729,-71.160837 42.259113,-71.161144 42.25932)'); ``` ``` ---- udf::native::io::wkt::test::test stdout ---- +----------------------------------------------------------------------------------------------------+ | st_geomfromtext(Utf8("LINESTRING(-71.160281 42.258729,-71.160837 42.259113,-71.161144 42.25932)")) | +----------------------------------------------------------------------------------------------------+ | {=[{x: -71.160281, y: 42.258729}, {x: -71.160837, y: 42.259113}, {x: -71.161144, y: 42.25932}]} | +----------------------------------------------------------------------------------------------------+ ``` Under the hood this is stored as a [rather complex dense union](https://github.com/geoarrow/geoarrow/blob/main/format.md#geometry), but allows for any combination of geometry type and dimension with a unique DataType that's streaming-friendly. -- 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]
