jiayuasu opened a new issue, #3042: URL: https://github.com/apache/sedona/issues/3042
Follow-up to the Box3D EPIC ([#2973](https://github.com/apache/sedona/issues/2973)) and the Flink slices [#3037](https://github.com/apache/sedona/pull/3037) (foundation) and [#3040](https://github.com/apache/sedona/pull/3040) (accessors / ST_3DExtent). Final Flink Box3D slice. Brings the Flink predicate surface to parity with Spark's Box3D predicates (which were consolidated into `ST_Intersects` / `ST_Contains` plus the standalone `ST_3DDWithin`). ## Scope - Box3D `eval` overloads on Flink `ST_Intersects` and `ST_Contains`, wrapping `Predicates.box3dIntersects` / `box3dContains`. Mirrors the Box2D overloads already present on these classes. - New `ST_3DDWithin` scalar function with two overloads: `(Geometry, Geometry, Double)` → `dWithin3D` (missing Z folds to 0), and `(Box3D, Box3D, Double)` → `dWithin3D`. NULL-guarded like the Box overloads. - Register `ST_3DDWithin` in `Catalog`. ## Tests - `PredicateTest.testIntersectsOnBox3D` / `testContainsOnBox3D` — XY-overlapping-but-Z-disjoint cases confirm the Z axis is enforced. - `PredicateTest.test3DDWithin` — Geometry POINT Z within/just-outside, plus Box3D-on-Box3D faces-apart-in-Z within/just-outside. ## Completion This completes Flink Box3D parity with the shipped Spark surface (type + serializer, constructors, accessors, ST_AsText, ST_3DExtent, and predicates). -- 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]
