alex-plekhanov commented on a change in pull request #9593:
URL: https://github.com/apache/ignite/pull/9593#discussion_r756298024
##########
File path:
modules/calcite/src/test/java/org/apache/ignite/internal/processors/query/calcite/CalciteQueryProcessorTest.java
##########
@@ -1148,6 +1150,18 @@ public void testSelectWithOrdering() throws
IgniteInterruptedCheckedException {
.check();
}
+ /**
+ * Checks correlates are assigned before access.
+ */
+ @Test
+ public void testCorrelatesAssignedBeforeAccess() throws
IgniteInterruptedCheckedException {
+ sql("create table test_tbl(v INTEGER)", true);
+
+ sql("INSERT INTO test_tbl VALUES (1)", true);
+
+ sql("SELECT t0.v, (SELECT t0.v + t1.v FROM test_tbl t1) AS j FROM
test_tbl t0");
Review comment:
Let's assert result here
--
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]