loftiest commented on code in PR #56498:
URL: https://github.com/apache/spark/pull/56498#discussion_r3465992251
##########
python/pyspark/sql/functions/builtin.py:
##########
@@ -15180,7 +15180,12 @@ def format_string(format: str, *cols: "ColumnOrName")
-> Column:
@_try_remote_functions
-def instr(str: "ColumnOrName", substr: Union[Column, str]) -> Column:
+def instr(
+ str: "ColumnOrName",
+ substr: Union[Column, str],
+ start: Optional[Union[Column, int]] = None,
+ occurrence: Optional[Union[Column, int]] = None,
+) -> Column:
"""
Locate the position of the first occurrence of substr column in the given
string.
Review Comment:
Updated the Python docstring, thanks.
--
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]