You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by GitBox <gi...@apache.org> on 2019/02/05 15:36:42 UTC

[GitHub] zecevicp opened a new pull request #23737: [SPARK-26826][SQL] Array indexing functions

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:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org