Skip to content

Commit

Permalink
Update datafusion/physical-expr/src/array_expressions.rs
Browse files Browse the repository at this point in the history
Co-authored-by: Andrew Lamb <[email protected]>
  • Loading branch information
Weijun-H and alamb authored Dec 2, 2023
1 parent 5d678a0 commit 95a8396
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion datafusion/physical-expr/src/array_expressions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -400,7 +400,8 @@ pub fn make_array(arrays: &[ArrayRef]) -> Result<ArrayRef> {
exec_err!("The number of elements {} in the array exceed the maximum number of elements supported by DataFusion",len)
}
}
data_type => {
DataType::LIst(_) => array_array::<i32>(arrays, data_type)
DataType::LargeList(_) => array_array::<i64>(arrays, data_type)
if len <= i32::MAX as usize {
array_array::<i32>(arrays, data_type)
} else if len <= i64::MAX as usize {
Expand Down

0 comments on commit 95a8396

Please sign in to comment.