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

vortex-data / vortex / 16728097825

04 Aug 2025 04:00PM UTC coverage: 48.355% (-35.1%) from 83.429%
16728097825

Pull #4108

github

web-flow
Merge 1b2d27fd8 into 649ba9576
Pull Request #4108: perf[vortex-array]: use all_valid instead of `invalid_count() == 0`

1 of 1 new or added line in 1 file covered. (100.0%)

11596 existing lines in 378 files now uncovered.

18635 of 38538 relevant lines covered (48.35%)

151786.4 hits per line

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

0.0
/vortex-array/src/arrays/constant/compute/binary_numeric.rs
1
// SPDX-License-Identifier: Apache-2.0
2
// SPDX-FileCopyrightText: Copyright the Vortex contributors
3

4
use vortex_error::{VortexResult, vortex_err};
5
use vortex_scalar::NumericOperator;
6

7
use crate::arrays::{ConstantArray, ConstantVTable};
8
use crate::compute::{NumericKernel, NumericKernelAdapter};
9
use crate::{Array, ArrayRef, IntoArray, register_kernel};
10

11
impl NumericKernel for ConstantVTable {
UNCOV
12
    fn numeric(
×
UNCOV
13
        &self,
×
UNCOV
14
        array: &ConstantArray,
×
UNCOV
15
        rhs: &dyn Array,
×
UNCOV
16
        op: NumericOperator,
×
UNCOV
17
    ) -> VortexResult<Option<ArrayRef>> {
×
UNCOV
18
        let Some(rhs) = rhs.as_constant() else {
×
UNCOV
19
            return Ok(None);
×
20
        };
21

22
        Ok(Some(
UNCOV
23
            ConstantArray::new(
×
UNCOV
24
                array
×
UNCOV
25
                    .scalar()
×
UNCOV
26
                    .as_primitive()
×
UNCOV
27
                    .checked_binary_numeric(&rhs.as_primitive(), op)
×
UNCOV
28
                    .ok_or_else(|| vortex_err!("numeric overflow"))?,
×
UNCOV
29
                array.len(),
×
30
            )
UNCOV
31
            .into_array(),
×
32
        ))
UNCOV
33
    }
×
34
}
35

36
register_kernel!(NumericKernelAdapter(ConstantVTable).lift());
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