Skip to main content

vortex_datetime_parts/
lib.rs

1// SPDX-License-Identifier: Apache-2.0
2// SPDX-FileCopyrightText: Copyright the Vortex contributors
3
4pub use array::*;
5pub use compress::*;
6
7mod array;
8mod canonical;
9mod compress;
10mod compute;
11mod ops;
12mod timestamp;
13
14#[cfg(test)]
15mod test {
16    use vortex_array::ProstMetadata;
17    use vortex_array::dtype::PType;
18    use vortex_array::test_harness::check_metadata;
19
20    use crate::DateTimePartsMetadata;
21
22    #[cfg_attr(miri, ignore)]
23    #[test]
24    fn test_datetimeparts_metadata() {
25        check_metadata(
26            "datetimeparts.metadata",
27            ProstMetadata(DateTimePartsMetadata {
28                days_ptype: PType::I64 as i32,
29                seconds_ptype: PType::I64 as i32,
30                subseconds_ptype: PType::I64 as i32,
31            }),
32        );
33    }
34}