alex-plekhanov commented on a change in pull request #9671:
URL: https://github.com/apache/ignite/pull/9671#discussion_r792361096



##########
File path: 
modules/calcite/src/main/java/org/apache/ignite/internal/processors/query/calcite/rule/logical/ExposeIndexRule.java
##########
@@ -71,7 +71,10 @@ private static boolean preMatch(IgniteLogicalTableScan scan) 
{
             .map(idx -> idx.toRel(cluster, optTable, proj, condition, 
requiredCols))
             .collect(Collectors.toList());
 
-        assert !indexes.isEmpty();
+        indexes.removeIf(Objects::isNull);

Review comment:
       This block was rewritten, so there is no null check is required now.




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