Uploaded image for project: 'Flink'
  1. Flink
  2. FLINK-21946

FlinkRelMdUtil.numDistinctVals produces exceptional Double.NaN result when domainSize is in range(0,1)

    XMLWordPrintableJSON

Details

    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

          Activity

            People

              lincoln.86xy lincoln lee
              lincoln.86xy lincoln lee
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: