gparai commented on a change in pull request #1775: DRILL-7227: Fix predicate
check in DrillRelOptUtil.analyzeSimpleEquiJoin
URL: https://github.com/apache/drill/pull/1775#discussion_r280181080
##########
File path:
exec/java-exec/src/main/java/org/apache/drill/exec/planner/cost/DrillRelMdDistinctRowCount.java
##########
@@ -180,7 +180,7 @@ private Double getDistinctRowCountInternal(TableScan scan,
RelMetadataQuery mq,
}
}
s = Math.min(s, rowCount);
- if (!allCols) {
+ if (s == 1.0 && !allColsHaveNDV) {
Review comment:
Renamed the variable to avoid confusion
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services