[ 
https://issues.apache.org/jira/browse/SPARK-51051?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Shreyas updated SPARK-51051:
----------------------------
    Description: 
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!

  was:
Most programming language 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!


> 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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to