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

4
//! Utilities to work with `Arrow` data and types.
5

6
use arrow_array::ArrayRef as ArrowArrayRef;
7
use arrow_schema::DataType;
8
use vortex_error::VortexResult;
9

10
mod array;
11
pub mod compute;
12
mod convert;
13
mod datum;
14
mod iter;
15
mod record_batch;
16

17
pub use datum::*;
18
pub use iter::*;
19

20
use crate::arrow::compute::ToArrowOptions;
21

22
pub trait FromArrowArray<A> {
23
    fn from_arrow(array: A, nullable: bool) -> Self;
24
}
25

26
pub trait IntoArrowArray {
27
    fn into_arrow_preferred(self) -> VortexResult<ArrowArrayRef>;
28

29
    fn into_arrow(self, data_type: &DataType) -> VortexResult<ArrowArrayRef>;
30
}
31

32
impl IntoArrowArray for crate::ArrayRef {
33
    /// Convert this [`crate::ArrayRef`] into an Arrow [`crate::ArrayRef`] by using the array's preferred
34
    /// Arrow [`DataType`].
UNCOV
35
    fn into_arrow_preferred(self) -> VortexResult<ArrowArrayRef> {
×
UNCOV
36
        compute::to_arrow_opts(&self, &ToArrowOptions { arrow_type: None })
×
UNCOV
37
    }
×
38

UNCOV
39
    fn into_arrow(self, data_type: &DataType) -> VortexResult<ArrowArrayRef> {
×
UNCOV
40
        compute::to_arrow_opts(
×
UNCOV
41
            &self,
×
UNCOV
42
            &ToArrowOptions {
×
UNCOV
43
                arrow_type: Some(data_type.clone()),
×
UNCOV
44
            },
×
45
        )
UNCOV
46
    }
×
47
}
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