beliefer commented on a change in pull request #30543:
URL: https://github.com/apache/spark/pull/30543#discussion_r537979256
##########
File path:
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/regexpExpressions.scala
##########
@@ -348,11 +348,11 @@ case class NotLikeAny(child: Expression, patterns:
Seq[UTF8String]) extends Like
Examples:
> SET spark.sql.parser.escapedStringLiterals=true;
spark.sql.parser.escapedStringLiterals true
- > SELECT '%SystemDrive%\Users\John' _FUNC_ '%SystemDrive%\\Users.*';
+ > SELECT _FUNC_('%SystemDrive%\Users\John', '%SystemDrive%\\Users.*');
Review comment:
`[ NOT ] { LIKE search_pattern [ ESCAPE esc_char ] | [ RLIKE | REGEXP ]
regex_pattern }` is a syntax, but `_FUNC_(str, regext)` is a function call.
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]