vortex_array/arrays/decimal/mod.rs
1// SPDX-License-Identifier: Apache-2.0
2// SPDX-FileCopyrightText: Copyright the Vortex contributors
3
4mod array;
5pub use array::DecimalArray;
6pub use array::DecimalArrayParts;
7
8pub(crate) mod compute;
9
10mod vtable;
11pub use compute::rules::DecimalMaskedValidityRule;
12pub use vtable::Decimal;
13
14mod utils;
15pub use utils::*;
16
17#[cfg(test)]
18mod tests {
19 use arrow_array::Decimal128Array;
20
21 #[test]
22 fn test_decimal() {
23 // They pass it b/c the DType carries the information. No other way to carry a
24 // dtype except via the array.
25 let value = Decimal128Array::new_null(100);
26 let numeric = value.value(10);
27 assert_eq!(numeric, 0i128);
28 }
29}