Skip to main content

vortex_array/compute/
nan_count.rs

1// SPDX-License-Identifier: Apache-2.0
2// SPDX-FileCopyrightText: Copyright the Vortex contributors
3
4use vortex_error::VortexResult;
5
6use crate::ArrayRef;
7use crate::LEGACY_SESSION;
8use crate::VortexSessionExecute;
9
10#[deprecated(note = "use `vortex::array::aggregate_fn::fns::nan_count::nan_count` instead")]
11pub fn nan_count(array: &ArrayRef) -> VortexResult<usize> {
12    let mut ctx = LEGACY_SESSION.create_execution_ctx();
13    crate::aggregate_fn::fns::nan_count::nan_count(array, &mut ctx)
14}