chenkovsky opened a new pull request, #17673:
URL: https://github.com/apache/datafusion/pull/17673

   ## Which issue does this PR close?
   
   ```
   statement ok
   CREATE TABLE test_reverse_fixed_size AS VALUES
     (arrow_cast([1, 2, 3], 'FixedSizeList(3, Int64)')),
     (arrow_cast([4, 5, 6], 'FixedSizeList(3, Int64)')),
     (arrow_cast([NULL, 8, 9], 'FixedSizeList(3, Int64)')),
     (NULL);
   
   query ?
   SELECT array_sort(reverse(column1)) FROM test_reverse_fixed_size;
   ----
   [3, 2, 1]
   [6, 5, 4]
   [9, 8, NULL]
   NULL
   ```
   Invalid argument error: Incorrect length of null buffer for 
FixedSizeListArray, expected 3 got 4
   
   ## Rationale for this change
   
   null padding for fixed size list is incorrect in array_reverse.
   
   ## What changes are included in this PR?
   
   update null padding.
   
   ## Are these changes tested?
   
   UT
   
   ## Are there any user-facing changes?
   
   No


-- 
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]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to