Abeeujah commented on issue #244:
URL: https://github.com/apache/sedona-db/issues/244#issuecomment-3517670134

   This seems to revert the issue with the type change after Simplify
   ```rust
       let geometry = match (initial_type, geometry.geometry_type()) {
           (GeometryTypes::MultiPolygon, GeometryTypes::Polygon) => {
               Geometry::create_multipolygon(vec![geometry]).map_err(|e| {
                   DataFusionError::Execution(format!("Failed to revert 
geometry promotion: {e}"))
               })?
           }
           (GeometryTypes::MultiLineString, GeometryTypes::LineString) => {
               Geometry::create_multiline_string(vec![geometry]).map_err(|e| {
                   DataFusionError::Execution(format!("Failed to revert 
geometry promotion: {e}"))
               })?
           }
           _ => geometry,
   ```


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