Uploaded image for project: 'Calcite'
  1. Calcite
  2. CALCITE-5431

Method RelMdUtil$numDistinctVals() wrongly return zero if the method input domainSize is a very large value

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Duplicate
    • 1.33.0
    • 1.33.0
    • core
    • None

    Description

      Method RelMdUtil$numDistinctVals() wrongly return zero if the method input domainSize is a very large value. If domainSize is a very large value (like 2 x 10^16), Math.log(1.0 - 1.0 / dSize) will return 0, and domainSize will be set to 0, which is unreasonable in this scenario.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              337361684@qq.com Yunhong Zheng
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: