Skip to content

Commit

Permalink
fix array len
Browse files Browse the repository at this point in the history
  • Loading branch information
a10y committed Jun 9, 2024
1 parent 212b8a5 commit 3308c6c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vortex-datetime-parts/src/compute.rs
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ impl AsContiguousFn for DateTimePartsArray {
vortex_bail!(ComputeError: "mismatched dtypes in call to as_contiguous");
}

let mut chunks = Vec::with_capacity(arrays.iter().map(|array| array.len()).sum());
let mut chunks = Vec::with_capacity(arrays.len());

for array in arrays {
let dt_parts = Self::try_from(array)?;
Expand Down

0 comments on commit 3308c6c

Please sign in to comment.