korlov42 commented on code in PR #4378:
URL: https://github.com/apache/calcite/pull/4378#discussion_r2102607156


##########
core/src/test/resources/org/apache/calcite/test/SqlToRelConverterTest.xml:
##########
@@ -5007,6 +5007,30 @@ LogicalProject(ENAME=[$cor0.ENAME])
 }), 0)])
   LogicalProject(DEPTNO=[$7], ENAME=[$1])
     LogicalTableScan(table=[[CATALOG, SALES, EMP]])
+]]>
+    </Resource>
+  </TestCase>
+  <TestCase 
name="testMultipleCorrelatedSubQueriesInSelectReferencingDifferentTablesInFrom">

Review Comment:
   I tried to add such case locally in my branch, and it works just fine on 
`SqlToRelConverterTest`, but it fails with `Caused by: 
java.lang.NullPointerException: cm.mapCorToCorRel.get($cor0)` in `QuidemTest`.  
I tried to add following test case:
   ```
   select
       (select ename || ' from dept '
                     || (select dname from dept where deptno = emp.deptno and 
emp.empno = empnos.empno)
          from emp
       ) as ename_from_dept
     from (values (7369), (7499)) as empnos(empno) order by 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]

Reply via email to