zstan commented on a change in pull request #9103: URL: https://github.com/apache/ignite/pull/9103#discussion_r647137346
########## File path: modules/calcite/src/main/java/org/apache/ignite/internal/processors/query/calcite/prepare/IgnitePlanner.java ########## @@ -221,7 +225,20 @@ public ValidationResult validateAndGetTypeMetadata(SqlNode sqlNode) { @Override public RelRoot rel(SqlNode sql) { SqlToRelConverter sqlToRelConverter = sqlToRelConverter(validator(), catalogReader, sqlToRelConverterCfg); RelRoot root = sqlToRelConverter.convertQuery(sql, false, true); - root = root.withRel(sqlToRelConverter.decorrelate(sql, root.rel)); + RelNode rootRel = root.rel; Review comment: cause with .withExpand(false) correlates are not deduplicated, there are discussion on calcite dev list, i show you. -- 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: us...@infra.apache.org