izveigor opened a new issue, #6603:
URL: https://github.com/apache/arrow-datafusion/issues/6603

   ### Is your feature request related to a problem or challenge?
   
   Follow on to https://github.com/apache/arrow-datafusion/issues/6119
   
   For efficient use of arrays `arrow-datafusion` should support some 
operations:
   - [ ] Concatenate (use operator `||`) (`array_concat`, `array_append` and 
`array_prepend` analog)
   - [ ] Intersection (use operator `&&`) (not PostgreSQL analog!)
   
   
   ### Describe the solution you'd like
   
   Examples:
   ```
   select make_array(1, 2, 3) || make_array(4, 5, 6);
   ----
   [1, 2, 3, 4, 5, 6]
   ```
   
   ```
   select 1 || make_array(2, 3, 4);
   ----
   [1, 2, 3, 4]
   ```
   ```
   select make_array(1, 2, 3) || 4;
   ----
   [1, 2, 3, 4]
   ```
   ```
   select make_array(1, 4, 3) && make_array(2, 1);
   ----
   [1]
   ```
   
   ```
   select make_array(1, 2, 3, 4, 5) && make_array(1, 3, 6);
   ----
   [1, 3]
   ```
   
   ### Describe alternatives you've considered
   
   _No response_
   
   ### Additional context
   
   https://www.postgresql.org/docs/current/functions-array.html
   


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