You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@calcite.apache.org by GitBox <gi...@apache.org> on 2021/07/08 04:55:03 UTC

[GitHub] [calcite] zinking commented on a change in pull request #2448: [CALCITE-4673] Correlate variables deduplication is not triggered when custom table function presented.

zinking commented on a change in pull request #2448:
URL: https://github.com/apache/calcite/pull/2448#discussion_r665868748



##########
File path: core/src/main/java/org/apache/calcite/sql2rel/SqlToRelConverter.java
##########
@@ -1255,11 +1255,11 @@ private void substituteSubQuery(Blackboard bb, SubQuery subQuery) {
       //
       // If there is no correlation, the expression is replaced with a
       // boolean indicating whether the sub-query returned 0 or >= 1 row.
-      call = (SqlBasicCall) subQuery.node;
-      query = call.operand(0);
       if (!config.isExpand()) {
         return;
       }
+      call = (SqlBasicCall) subQuery.node;

Review comment:
       +1 




-- 
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: commits-unsubscribe@calcite.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org