paleolimbot opened a new issue, #9929:
URL: https://github.com/apache/arrow-rs/issues/9929

   **Describe the bug**
   
   In https://github.com/apache/arrow-rs/issues/8717 we added support for 
reading and writing Geometry and Geography in Parquet via the Arrow 
reader/writer! I finally got to updating DataFusion/arrow and wiring this up in 
SedonaDB ( https://github.com/apache/sedona-db/pull/805 ) and found that the 
expected GeoArrow metadata is using the "algorithm" instead of the "edges" key. 
This is workaroundable (I have to temporarily create invalid GeoArrow metadata 
to get the LogicalType I want and disable the embedded Arrow schema before I 
send it to the Arrow writer) but it would be great to fix this.
   
   **To Reproduce**
   
   Read a file that contains Geography logical type like 
<https://raw.githubusercontent.com/geoarrow/geoarrow-data/v0.2.0/natural-earth/files/natural-earth_countries-geography.parquet>
 with parquet and the geospatial feature enabled
   
   **Expected behavior**
   
   I expected `"edges": "spherical"` but got `"algorithm":"spherical"`
   
   I'll try to PR a fix for this shortly!


-- 
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]

Reply via email to