Berkof commented on a change in pull request #9276:
URL: https://github.com/apache/ignite/pull/9276#discussion_r692736733



##########
File path: 
modules/calcite/src/main/java/org/apache/ignite/internal/processors/query/calcite/rel/ProjectableFilterableTableScan.java
##########
@@ -134,7 +134,7 @@ protected RelWriter explainTerms0(RelWriter pw) {
 
     /** {@inheritDoc} */
     @Override public double estimateRowCount(RelMetadataQuery mq) {
-        return table.getRowCount() * mq.getSelectivity(this, null);
+        return table.getRowCount() * mq.getSelectivity(this, condition);

Review comment:
       Yep, it should be decided in getSelectivity method in current logic. 
Reverted.




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