beliefer commented on a change in pull request #27477: [SPARK-30724][SQL]
Support 'LIKE ANY' and 'LIKE ALL' operators
URL: https://github.com/apache/spark/pull/27477#discussion_r376688951
##########
File path:
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/parser/AstBuilder.scala
##########
@@ -1375,6 +1375,14 @@ class AstBuilder(conf: SQLConf) extends
SqlBaseBaseVisitor[AnyRef] with Logging
case other => Seq(other)
}
+ def getLikeQuantifierExps(expressions: java.util.List[ExpressionContext]):
Seq[Expression] = {
+ if (expressions.isEmpty) {
+ throw new ParseException("Syntax error: expected something between '('
and ')'.", ctx)
Review comment:
I think should remove `Syntax error: `, because `ParseException` could
replace it.
----------------------------------------------------------------
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]
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]