zecevicp opened a new pull request #23737: [SPARK-26826][SQL] Array indexing 
functions
URL: https://github.com/apache/spark/pull/23737
 
 
   ## What changes were proposed in this pull request?
   
   This PR proposes two extra array functions: `array_allpositions` (named 
after `array_position`) and `array_select`. These functions should make it 
easier to:
   - get an array of indices of all occurences of a value in an array 
(`array_allpositions`)
   - select all elements of an array based on an array of indices 
(`array_select`)
   
   Although higher-order functions, such as `aggregate` and `transform`, have 
been recently added, performing tasks above is still not simple, hence this 
addition.
   
   
   ## How was this patch tested?
   Unit tests
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

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

Reply via email to