[ 
https://issues.apache.org/jira/browse/SPARK-51051?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18021456#comment-18021456
 ] 

Aparna Garg commented on SPARK-51051:
-------------------------------------

User 'konjac' has created a pull request for this issue:
https://github.com/apache/spark/pull/51317

> array_position function should accept an optional 'start_index' parameter
> -------------------------------------------------------------------------
>
>                 Key: SPARK-51051
>                 URL: https://issues.apache.org/jira/browse/SPARK-51051
>             Project: Spark
>          Issue Type: Improvement
>          Components: SQL
>    Affects Versions: 3.5.4
>            Reporter: Shreyas
>            Priority: Major
>
> Most programming languages that support "array_position" type of function 
> have an optional parameter to start from a specific index.
> For e.g. Javascript has the 
> [indexOf|https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/indexOf]
>  function that accepts *fromIndex* parameter. Same with Scala indexOf on 
> Lists as well.
> It would be nice to add that parameter to Spark's array_position function as 
> well.
> Thanks!



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org
For additional commands, e-mail: issues-h...@spark.apache.org

Reply via email to