Details
-
Sub-task
-
Status: Resolved
-
Major
-
Resolution: Won't Fix
-
2.4.0
-
None
-
None
Description
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")]
Attachments
Issue Links
- relates to
-
SPARK-23074 Dataframe-ified zipwithindex
- Resolved
- links to