[ https://issues.apache.org/jira/browse/SPARK-24042?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17770659#comment-17770659 ]
ZygD commented on SPARK-24042: ------------------------------ [~Tagar] has incorrectly linked another issue to this one. Even this is resolved, the other one is not. Can we "unlink" the issue SPARK-23074? > High-order function: zip_with_index > ----------------------------------- > > Key: SPARK-24042 > URL: https://issues.apache.org/jira/browse/SPARK-24042 > Project: Spark > Issue Type: Sub-task > Components: SQL > Affects Versions: 2.4.0 > Reporter: Marek Novotny > Priority: Major > > Implement function {{zip_with_index(array[, indexFirst])}} that transforms > the input array by encapsulating elements into pairs with indexes indicating > the order. > Examples: > {{zip_with_index(array("d", "a", null, "b")) => > [("d",0),("a",1),(null,2),("b",3)]}} > {{zip_with_index(array("d", "a", null, "b"), true) => > [(0,"d"),(1,"a"),(2,null),(3,"b")]}} -- 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