zstan commented on a change in pull request #2571:
URL: https://github.com/apache/calcite/pull/2571#discussion_r726929445
##########
File path: core/src/main/java/org/apache/calcite/sql2rel/SqlToRelConverter.java
##########
@@ -4974,6 +5008,16 @@ void registerSubQuery(SqlNode node, RelOptUtil.Logic
logic) {
final SqlNode query;
final RelRoot root;
switch (kind) {
+ case LESS_THAN:
+ case GREATER_THAN:
+ case LESS_THAN_OR_EQUAL:
+ case GREATER_THAN_OR_EQUAL:
+ case EQUALS:
+ RexNode res = simplifyOnWithSelectInConditions(expr);
+ if (res != null) {
+ return res;
+ }
+ break;
Review comment:
why ? we don`t throw it before.
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]