Skip to content

Commit

Permalink
temporal
Browse files Browse the repository at this point in the history
  • Loading branch information
ritchie46 committed Sep 24, 2024
1 parent 2ab29f2 commit f3a89a7
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,10 @@ where
values_capacity: usize,
inner_type: DataType,
) -> Self {
assert!(inner_type.is_numeric(), "inner type must be primitive");
assert!(
inner_type.is_numeric() || inner_type.is_temporal(),
"inner type must be primitive"
);
let values = MutablePrimitiveArray::<T::Native>::with_capacity(values_capacity);
let builder = LargePrimitiveBuilder::<T::Native>::new_with_capacity(values, capacity);
let field = Field::new(name, DataType::List(Box::new(inner_type)));
Expand Down

0 comments on commit f3a89a7

Please sign in to comment.