zhengruifeng commented on code in PR #41653:
URL: https://github.com/apache/spark/pull/41653#discussion_r1235533367
##########
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 for `try_element_at`, maybe we should unify the second
parameter's name to `index`, in both scala and python
--
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]