maropu commented on a change in pull request #30543:
URL: https://github.com/apache/spark/pull/30543#discussion_r538364083
##########
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:
What do you mean? I meant the current generated doc is incorrect (`str
regexp_like regex` in the usage);
<img width="500" alt="Screen Shot 2020-12-08 at 22 14 34"
src="https://user-images.githubusercontent.com/692303/101488973-9e1bb300-39a3-11eb-92bc-9d0f654afae4.png">
```
scala> sql("select 'aaa' regexp_like 'aaa'").show()
org.apache.spark.sql.catalyst.parser.ParseException:
extraneous input ''aaa'' expecting {<EOF>, ';'}(line 1, pos 25)
== SQL ==
select 'aaa' regexp_like 'aaa'
-------------------------^^^
```
----------------------------------------------------------------
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]