loftiest commented on code in PR #56498:
URL: https://github.com/apache/spark/pull/56498#discussion_r3465994064
##########
sql/api/src/main/scala/org/apache/spark/sql/functions.scala:
##########
@@ -5174,6 +5174,62 @@ object functions {
*/
def instr(str: Column, substring: Column): Column = Column.fn("instr", str,
substring)
+ /**
+ * Locate the position of the first occurrence of `substring` in `str`,
starting the search from
Review Comment:
Thanks for the suggestion! I've added a `@note` to the Scala Scaladoc
covering that negative `start` searches backward and `start = 0` returns 0,
keeping the IDE-facing docs aligned with the SQL documentation.
--
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]