Weijun-H commented on code in PR #8121:
URL: https://github.com/apache/arrow-datafusion/pull/8121#discussion_r1393892134
##########
datafusion/physical-expr/src/array_expressions.rs:
##########
@@ -3015,6 +3085,18 @@ mod tests {
make_array(&args).expect("failed to initialize function array")
}
+ fn return_large_array() -> ArrayRef {
+ // Returns: [1, 2, 3, 4]
+ let args = [
+ Arc::new(Int64Array::from(vec![Some(1)])) as ArrayRef,
+ Arc::new(Int64Array::from(vec![Some(2)])) as ArrayRef,
+ Arc::new(Int64Array::from(vec![Some(3)])) as ArrayRef,
+ Arc::new(Int64Array::from(vec![Some(4)])) as ArrayRef,
+ ];
+ let data_type = DataType::Int64;
+ array_array::<i64>(&args, data_type).expect("failed to initialize
function array")
+ }
+
Review Comment:
Hack here to create a `LargeList` to avoid spending too much memory for
testing.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]