alex-plekhanov commented on code in PR #13389:
URL: https://github.com/apache/ignite/pull/13389#discussion_r4326912560


##########
modules/calcite/src/test/java/org/apache/ignite/internal/processors/query/calcite/planner/CorrelatedSubqueryPlannerTest.java:
##########
@@ -123,7 +123,7 @@ public void testPaddedCorrelateInSecondFilterSubquery() 
throws Exception {
                     .and(input(0, nodeOrAnyChild(isTableScan("T1"))))
                     .and(input(1, nodeOrAnyChild(isTableScan("T3")
                         .and(ts -> "=($t0, 
$cor0.REF1)".equals(ts.condition().toString())))))
-                    .and(input(1, nodeOrAnyChild(isTableScan("T2").and(ts -> 
ts.condition() == null))))

Review Comment:
   Test fails now with:
   ```
   Caused by: java.lang.ArrayIndexOutOfBoundsException: Index -1 out of bounds 
for length 2
        at 
com.google.common.collect.RegularImmutableList.get(RegularImmutableList.java:80)
        at org.apache.calcite.util.Util$TransformingList.get(Util.java:2924)
        at 
org.apache.ignite.internal.processors.query.calcite.metadata.IgniteMdSelectivity.extactFieldName(IgniteMdSelectivity.java:331)
        at 
org.apache.ignite.internal.processors.query.calcite.metadata.IgniteMdSelectivity.getColumnStatistics(IgniteMdSelectivity.java:312)
        at 
org.apache.ignite.internal.processors.query.calcite.metadata.IgniteMdSelectivity.getTablePredicateBasedSelectivity(IgniteMdSelectivity.java:237)
        at 
org.apache.ignite.internal.processors.query.calcite.metadata.IgniteMdSelectivity.getSelectivity(IgniteMdSelectivity.java:94)
   ```



-- 
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