diff --git a/src/main/java/com/snowflake/snowpark_java/Functions.java b/src/main/java/com/snowflake/snowpark_java/Functions.java index 7d63d8a5..78c64418 100644 --- a/src/main/java/com/snowflake/snowpark_java/Functions.java +++ b/src/main/java/com/snowflake/snowpark_java/Functions.java @@ -4327,6 +4327,7 @@ public static Column locate(Column substr, Column str, int pos) { /** * Locate the position of the first occurrence of substr in a string column, after position pos. + * default to 1. * *
{@code * DataFrame df = getSession().sql("select * from values ('abcd') as T(s)"); diff --git a/src/main/scala/com/snowflake/snowpark/functions.scala b/src/main/scala/com/snowflake/snowpark/functions.scala index 3ba8df46..8526805c 100644 --- a/src/main/scala/com/snowflake/snowpark/functions.scala +++ b/src/main/scala/com/snowflake/snowpark/functions.scala @@ -3670,7 +3670,7 @@ object functions { * @since 1.14.0 * @param substr string to search * @param str value where string will be searched - * @param pos index for starting the search + * @param pos index for starting the search. default to 1. * @return Returns the position of the first occurrence */ def locate(substr: String, str: Column, pos: Int = 1): Column =