Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
1.11.3, 1.12.2
Description
CALCITE-4351 introduced a new 'more accurate' formula for estimating the number of distinct values, FLINK-19780 fixed one bad case when number of rows are large, but still there's exception path when domainSize is in range(0,1), the following code in calciteās RelMdUtil.numDistinctVals will produce Double.NaN result:
double expo = numSel * Math.log(1.0 - 1.0 / dSize);
Before CALCITE-4351 was fixed, we should continue the fixing in flink.
Attachments
Issue Links
- is caused by
-
CALCITE-4351 RelMdUtil#numDistinctVals always returns 0 for large inputs
- Closed
- links to