Kontinuation commented on code in PR #57:
URL: https://github.com/apache/sedona-db/pull/57#discussion_r2341708370
##########
rust/sedona-spatial-join/src/optimizer.rs:
##########
@@ -2418,4 +2466,39 @@ mod tests {
let result = transform_join_filter(&join_filter);
assert!(result.is_none()); // Should fail - k must be a literal value
}
+
+ #[test]
+ fn test_is_spatial_predicate_supported() {
+ // Planar geometry field
+ let geom_field = WKB_GEOMETRY.to_storage_field("geom", false).unwrap();
+ let schema = Arc::new(Schema::new(vec![geom_field.clone()]));
Review Comment:
I tried to add this test case, but found that SedonaDB gives wildly
different results from PostGIS. S2 is less likely to consider polygons that
touch at boundaries as intersections. I can still add this Python test, but
mark it as xfail.
--
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]