diff --git a/sql/core/src/main/scala/org/apache/spark/sql/functions.scala b/sql/core/src/main/scala/org/apache/spark/sql/functions.scala index c60df14f0481..c6e8cf76fea1 100644 --- a/sql/core/src/main/scala/org/apache/spark/sql/functions.scala +++ b/sql/core/src/main/scala/org/apache/spark/sql/functions.scala @@ -2460,25 +2460,25 @@ object functions { def soundex(e: Column): Column = withExpr { SoundEx(e.expr) } /** - * Splits str around matches of the given regex. + * Splits str around matches of the given pattern. * * @param str a string expression to split - * @param regex a string representing a regular expression. The regex string should be - * a Java regular expression. + * @param pattern a string representing a regular expression. The regex string should be + * a Java regular expression. * * @group string_funcs * @since 1.5.0 */ - def split(str: Column, regex: String): Column = withExpr { - StringSplit(str.expr, Literal(regex), Literal(-1)) + def split(str: Column, pattern: String): Column = withExpr { + StringSplit(str.expr, Literal(pattern), Literal(-1)) } /** - * Splits str around matches of the given regex. + * Splits str around matches of the given pattern. * * @param str a string expression to split - * @param regex a string representing a regular expression. The regex string should be - * a Java regular expression. + * @param pattern a string representing a regular expression. The regex string should be + * a Java regular expression. * @param limit an integer expression which controls the number of times the regex is applied. *