has_any_exact_match

Function has_any_exact_match 

Source
fn has_any_exact_match(
    value: ScalarValue,
    array: ArrayRef,
    exactness: BooleanArray,
) -> Option<bool>
Expand description

Checks if any occurrence of value in array corresponds to a true entry in the exactness array.

This is used to determine if a calculated statistic (e.g., min or max) is exact, by checking if at least one of its source values was exact.

ยงExample

  • value: 0
  • array: [0, 1, 0, 3, 0, 5]
  • exactness: [true, false, false, false, false, false]

The value 0 appears at indices [0, 2, 4]. The corresponding exactness values are [true, false, false]. Since at least one is true, the function returns Some(true).