• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

vortex-data / vortex / 17073077835

19 Aug 2025 02:40PM UTC coverage: 24.083%. First build
17073077835

Pull #4177

github

web-flow
Merge b42e5758f into 431a8f2b5
Pull Request #4177: feat: ArrayOperations infallible, eager validation + new_unchecked

197 of 1455 new or added lines in 154 files covered. (13.54%)

8646 of 35901 relevant lines covered (24.08%)

142.28 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

50.0
/vortex-array/src/arrays/primitive/ops.rs
1
// SPDX-License-Identifier: Apache-2.0
2
// SPDX-FileCopyrightText: Copyright the Vortex contributors
3

4
use vortex_dtype::match_each_native_ptype;
5
use vortex_scalar::Scalar;
6

7
use crate::arrays::{PrimitiveArray, PrimitiveVTable};
8
use crate::vtable::{OperationsVTable, ValidityHelper};
9
use crate::{ArrayRef, IntoArray};
10

11
impl OperationsVTable<PrimitiveVTable> for PrimitiveVTable {
12
    fn slice(array: &PrimitiveArray, start: usize, stop: usize) -> ArrayRef {
160✔
13
        match_each_native_ptype!(array.ptype(), |T| {
160✔
NEW
14
            PrimitiveArray::new(
×
15
                array.buffer::<T>().slice(start..stop),
×
NEW
16
                array.validity().slice(start, stop),
×
17
            )
×
NEW
18
            .into_array()
×
19
        })
20
    }
160✔
21

22
    fn scalar_at(array: &PrimitiveArray, index: usize) -> Scalar {
10✔
23
        match_each_native_ptype!(array.ptype(), |T| {
10✔
24
            Scalar::primitive(array.as_slice::<T>()[index], array.dtype().nullability())
×
25
        })
26
    }
10✔
27
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc