rluvaton-flarion opened a new issue, #13960:
URL: https://github.com/apache/datafusion/issues/13960

   ### Describe the bug
   
   When having `array_distinct` on null, the query fails
   
   ### To Reproduce
   
   Run the following in `datafusion-cli`
   
   ```sql
   select array_distinct(a) from values ([1, 2, 3]), ([1, 3, 1]), (null) as 
X(a);
   ```
   
   Internal error: UDF returned a different number of rows than expected. 
Expected: 3, Got: 2.
   This was likely caused by a bug in DataFusion's code and we would welcome 
that you file an bug report in our issue tracker
   
   
   
   
   ### Expected behavior
   
   To not fail and return the correct result
   
   ### Additional context
   
   I'll create PR to fix this week


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