Weijun-H opened a new issue, #9706:
URL: https://github.com/apache/arrow-datafusion/issues/9706

   ### Describe the bug
   
   It seems that the functions `array_union` and `array_intersect` are unable 
to process columnar data that contains NULL values. These NULL values are being 
overlooked in the process.
   
   ### To Reproduce
   
   ``` bash
   ❯ 
   CREATE TABLE array_intersect_table
   AS VALUES
     ([1, 2, 2, 3], [2, 3, 4]),
     ([2, 3, 3], [3]),
     ([3], [3, 3, 4]),
     (null, [3, 4]),
     ([1, 2], null),
     (null, null)
   ;
   0 rows in set. Query took 0.013 seconds.
   
   ❯ select array_intersect(column1, column2) from array_intersect_table;
   +------------------------------------------------------------------------+
   | array_intersect(array_intersect_table.column1,array_except_table.column2) |
   +------------------------------------------------------------------------+
   | [2, 3]                                                                 |
   | [3]                                                                    |
   | [3]                                                                    |
   +------------------------------------------------------------------------+
   3 rows in set. Query took 0.007 seconds.
   ```
   
   ### Expected behavior
   
   _No response_
   
   ### Additional context
   
   _No response_


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

Reply via email to