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
- duplicates
-
CALCITE-4351 RelMdUtil#numDistinctVals always returns 0 for large inputs
- Closed
- is related to
-
CALCITE-4351 RelMdUtil#numDistinctVals always returns 0 for large inputs
- Closed
- relates to
-
FLINK-30368 Fix calcite method RelMdUtil$numDistinctVals() wrongly return zero if the method input domainSize much larger than numSelected
- Closed