@@ -2463,22 +2463,22 @@ object functions {
24632463 * Splits str around matches of the given regex.
24642464 *
24652465 * @param str a string expression to split
2466- * @param regex a string representing a regular expression. The regex string should be
2467- * a Java regular expression.
2466+ * @param pattern a string representing a regular expression. The regex string should be
2467+ * a Java regular expression.
24682468 *
24692469 * @group string_funcs
24702470 * @since 1.5.0
24712471 */
2472- def split (str : Column , regex : String ): Column = withExpr {
2473- StringSplit (str.expr, Literal (regex ), Literal (- 1 ))
2472+ def split (str : Column , pattern : String ): Column = withExpr {
2473+ StringSplit (str.expr, Literal (pattern ), Literal (- 1 ))
24742474 }
24752475
24762476 /**
24772477 * Splits str around matches of the given regex.
24782478 *
24792479 * @param str a string expression to split
2480- * @param regex a string representing a regular expression. The regex string should be
2481- * a Java regular expression.
2480+ * @param pattern a string representing a regular expression. The regex string should be
2481+ * a Java regular expression.
24822482 * @param limit an integer expression which controls the number of times the regex is applied.
24832483 * <ul>
24842484 * <li>limit greater than 0: The resulting array's length will not be more than limit,
@@ -2491,8 +2491,8 @@ object functions {
24912491 * @group string_funcs
24922492 * @since 3.0.0
24932493 */
2494- def split (str : Column , regex : String , limit : Int ): Column = withExpr {
2495- StringSplit (str.expr, Literal (regex ), Literal (limit))
2494+ def split (str : Column , pattern : String , limit : Int ): Column = withExpr {
2495+ StringSplit (str.expr, Literal (pattern ), Literal (limit))
24962496 }
24972497
24982498 /**
0 commit comments