francis0407 commented on a change in pull request #23783: [SPARK-26854][SQL]
Support ANY/SOME subquery
URL: https://github.com/apache/spark/pull/23783#discussion_r268498228
##########
File path:
sql/catalyst/src/main/antlr4/org/apache/spark/sql/catalyst/parser/SqlBase.g4
##########
@@ -576,6 +576,7 @@ predicate
: NOT? kind=BETWEEN lower=valueExpression AND upper=valueExpression
| NOT? kind=IN '(' expression (',' expression)* ')'
| NOT? kind=IN '(' query ')'
+ | comparisonOperator kind=(ANY | SOME) '(' query ')'
Review comment:
1. Yes, we will extend this to 'ALL'. And it is easy to implement based on
this PR.
2. I think it has not much relation with this PR. This PR focuses on
subquery which will be rewrote as Join. Like `InSet`, 'ANY' with `array` will
use code generation for computing. They are totally different. And IMO, it's ok
to support.
----------------------------------------------------------------
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]