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

FlinkRelMdDistinctRowCount#getDistinctRowCount(Calc) will always return 0 when number of rows are large

    XMLWordPrintableJSON

Details

    Description

      Due to CALCITE-4351 FlinkRelMdDistinctRowCount#getDistinctRowCount(Calc) will always return 0 when number of rows are large.

      What I would suggest is to introduce our own FlinkRelMdUtil#numDistinctVals to treat small and large inputs in different ways. For small inputs we use the more precise RelMdUtil#numDistinctVals and for large inputs we copy the old, approximated implementation of RelMdUtil#numDistinctVals.

      This is a temporary solution. When CALCITE-4351 is fixed we should revert this commit.

      Attachments

        Issue Links

          Activity

            People

              TsReaper Caizhi Weng
              TsReaper Caizhi Weng
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: