zhengruifeng commented on code in PR #41653:
URL: https://github.com/apache/spark/pull/41653#discussion_r1236684366
##########
python/pyspark/sql/functions.py:
##########
@@ -10379,6 +10686,40 @@ def element_at(col: "ColumnOrName", extraction: Any)
-> Column:
return _invoke_function_over_columns("element_at", col, lit(extraction))
+@try_remote_functions
+def try_element_at(col: "ColumnOrName", extraction: "ColumnOrName") -> Column:
+ """
+ (array, index) - Returns element of array at given (1-based) index. If
Index is 0, Spark will
Review Comment:
@panbingkun I just notice that `try_element_at ` use the same names as
`element_at`, so current commit is fine. we don't need any follow up.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]