julianhyde commented on code in PR #3382:
URL: https://github.com/apache/calcite/pull/3382#discussion_r1299628086


##########
core/src/main/java/org/apache/calcite/rel/metadata/RelMdRowCount.java:
##########
@@ -169,6 +170,12 @@ public Double getRowCount(Calc rel, RelMetadataQuery mq) {
     return limit < rowCount ? limit : rowCount;
   }
 
+  public @Nullable Double getRowCount(Sample rel, RelMetadataQuery mq) {

Review Comment:
   Yes. Perhaps worth justifying with a comment (because nothing is obvious in 
statistics). The expected value of a binomial distribution with probability p 
over n trials is n * p.



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