maropu commented on a change in pull request #30543:
URL: https://github.com/apache/spark/pull/30543#discussion_r537507383
##########
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:
hm, since RLIKE/LIKE syntaxes are already documented in [the SQL
doc](https://spark.apache.org/docs/latest/sql-ref-syntax-qry-select-like.html)
, how about updating the usage (`str _FUNC_ regexp` -> `_FUNC_(str, regext)`)
accordingly?
----------------------------------------------------------------
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]