File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -89,6 +89,10 @@ pub(crate) fn validate_geometry_operands(dtypes: &[DType]) -> VortexResult<()> {
8989
9090/// Flatten a native geometry column into a single coordinate `Struct<x, y, ...>` containing
9191/// every vertex of every geometry.
92+ ///
93+ /// Reads the coordinate buffers directly and ignores row validity, so a null row's placeholder
94+ /// coordinates are included. Callers that must exclude nulls (e.g. the AABB stat) filter the
95+ /// column first.
9296pub ( crate ) fn flatten_coordinates (
9397 array : & ArrayRef ,
9498 ctx : & mut ExecutionCtx ,
@@ -115,6 +119,9 @@ pub(crate) fn flatten_coordinates(
115119}
116120
117121/// Decode a native geometry column to `geo_types`. A non-geometry operand is an error.
122+ ///
123+ /// Every row must be present: a null row has no decodable geometry (the per-type decoders reject
124+ /// it), so callers filter out null rows first.
118125pub ( crate ) fn geometries (
119126 array : & ArrayRef ,
120127 ctx : & mut ExecutionCtx ,
You can’t perform that action at this time.
0 commit comments