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

vortex-data / vortex / 16935267080

13 Aug 2025 11:00AM UTC coverage: 24.312% (-63.3%) from 87.658%
16935267080

Pull #4226

github

web-flow
Merge 81b48c7fb into baa6ea202
Pull Request #4226: Support converting TimestampTZ to and from duckdb

0 of 2 new or added lines in 1 file covered. (0.0%)

20666 existing lines in 469 files now uncovered.

8726 of 35892 relevant lines covered (24.31%)

147.74 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