Skip to content

Commit 375eb9c

Browse files
committed
Fix doc.
1 parent 8ecb2ea commit 375eb9c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/regexpExpressions.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ case class Like(left: Expression, right: Expression) extends StringRegexExpressi
158158
regexp - a string expression. The pattern string should be a Java regular expression.
159159
160160
Since Spark 2.0, string literals (including regex patterns) are unescaped in our SQL parser.
161-
For example, if to match "\abc", a regular expression for `regexp` can be "^\\abc$".
161+
For example, to match "\abc", a regular expression for `regexp` can be "^\\abc$".
162162
163163
There is a SQL config 'spark.sql.parser.escapedStringLiterals' that can be used to fallback
164164
to the Spark 1.6 behavior regarding string literal parsing. For example, if the config is

0 commit comments

Comments
 (0)