vortex-array 0.72.0

Vortex in memory columnar data format
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// SPDX-License-Identifier: Apache-2.0
// SPDX-FileCopyrightText: Copyright the Vortex contributors

use vortex_error::VortexResult;

use crate::arrays::primitive::PrimitiveArrayExt;
use crate::match_each_native_ptype;

pub(super) fn check_primitive_identical<L, R>(lhs: &L, rhs: &R) -> VortexResult<bool>
where
    L: PrimitiveArrayExt,
    R: PrimitiveArrayExt,
{
    match_each_native_ptype!(lhs.ptype(), |P| {
        Ok(lhs.as_slice::<P>() == rhs.as_slice::<P>())
    })
}