[ https://issues.apache.org/jira/browse/CALCITE-5431?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17654616#comment-17654616 ]
Julian Hyde commented on CALCITE-5431: -------------------------------------- [~liyafan], [~337361...@qq.com], Can this be closed as a duplicate of CALCITE-4351? > Method RelMdUtil$numDistinctVals() wrongly return zero if the method input > domainSize is a very large value > ----------------------------------------------------------------------------------------------------------- > > Key: CALCITE-5431 > URL: https://issues.apache.org/jira/browse/CALCITE-5431 > Project: Calcite > Issue Type: Bug > Components: core > Affects Versions: 1.33.0 > Reporter: Yunhong Zheng > Priority: Major > Fix For: 1.33.0 > > > 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. -- This message was sent by Atlassian Jira (v8.20.10#820010)