jonathanc-n commented on code in PR #16423: URL: https://github.com/apache/datafusion/pull/16423#discussion_r2150374823
########## datafusion/functions-nested/src/reverse.rs: ########## @@ -175,3 +182,45 @@ fn general_array_reverse<O: OffsetSizeTrait + TryFrom<i64>>( Some(nulls.into()), )?)) } + +fn fixed_size_array_reverse( + array: &FixedSizeListArray, + field: &FieldRef, +) -> Result<ArrayRef> { + let values = array.values(); + let original_data = values.to_data(); + let capacity = Capacities::Array(original_data.len()); + let mut nulls = vec![]; Review Comment: Instead of creating another null array you can use the `.extend_null` function that is inside `MutableArrayData` -- 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: github-unsubscr...@datafusion.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: github-unsubscr...@datafusion.apache.org For additional commands, e-mail: github-h...@datafusion.apache.org