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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]