[jira] [Created] (FLINK-21946) FlinkRelMdUtil.numDistinctVals produces exceptional Double.NaN result when domainSize is in range(0,1)

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[jira] [Created] (FLINK-21946) FlinkRelMdUtil.numDistinctVals produces exceptional Double.NaN result when domainSize is in range(0,1)

Shang Yuanchun (Jira)
lincoln lee created FLINK-21946:
-----------------------------------

             Summary: FlinkRelMdUtil.numDistinctVals produces exceptional Double.NaN result  when domainSize is in range(0,1)
                 Key: FLINK-21946
                 URL: https://issues.apache.org/jira/browse/FLINK-21946
             Project: Flink
          Issue Type: Bug
          Components: Table SQL / Planner
    Affects Versions: 1.12.2, 1.11.3
            Reporter: lincoln lee
             Fix For: 1.13.0


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 will produce Double.NaN result:
{code}double expo = numSel * Math.log(1.0 - 1.0 / dSize);{code}




--
This message was sent by Atlassian Jira
(v8.3.4#803005)