pub fn normalize_floats(array: &ArrayRef) -> ArrayRefExpand description
Applies normalize_float to every float in array, including floats
nested inside lists, structs, maps, unions, dictionaries and run-end
encoded arrays. Arrays without floats are returned unchanged.
Callers use this before handing float data to Arrow kernels that compare
bit patterns, so that +0.0 = -0.0 holds.
The common case - nothing to normalize - is allocation-free: a single read-only scan of the values buffer (auto-vectorizable to an OR-reduction) decides whether to fall through to the rewriting path. Only arrays that contain values to normalize pay for a new buffer.