• 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/struct_/compute/filter.rs
1
// SPDX-License-Identifier: Apache-2.0
2
// SPDX-FileCopyrightText: Copyright the Vortex contributors
3

4
use itertools::Itertools;
5
use vortex_error::VortexResult;
6
use vortex_mask::Mask;
7

8
use crate::arrays::{StructArray, StructVTable};
9
use crate::compute::{FilterKernel, FilterKernelAdapter, filter};
10
use crate::vtable::ValidityHelper;
11
use crate::{Array, ArrayRef, IntoArray, register_kernel};
12

13
impl FilterKernel for StructVTable {
UNCOV
14
    fn filter(&self, array: &StructArray, mask: &Mask) -> VortexResult<ArrayRef> {
×
UNCOV
15
        let validity = array.validity().filter(mask)?;
×
16

UNCOV
17
        let fields: Vec<ArrayRef> = array
×
UNCOV
18
            .fields()
×
UNCOV
19
            .iter()
×
UNCOV
20
            .map(|field| filter(field, mask))
×
UNCOV
21
            .try_collect()?;
×
UNCOV
22
        let length = fields
×
UNCOV
23
            .first()
×
UNCOV
24
            .map(|a| a.len())
×
UNCOV
25
            .unwrap_or_else(|| mask.true_count());
×
26

UNCOV
27
        StructArray::try_new_with_dtype(fields, array.struct_fields().clone(), length, validity)
×
UNCOV
28
            .map(|a| a.into_array())
×
UNCOV
29
    }
×
30
}
31

32
register_kernel!(FilterKernelAdapter(StructVTable).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