You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@flink.apache.org by "lincoln lee (Jira)" <ji...@apache.org> on 2021/03/24 08:46:00 UTC
[jira] [Created] (FLINK-21946) FlinkRelMdUtil.numDistinctVals
produces exceptional Double.NaN result when domainSize is in range(0,1)
lincoln lee created FLINK-21946:
-----------------------------------
Summary: FlinkRelMdUtil.numDistinctVals produces exceptional Double.NaN result when domainSize is in range(0,1)
Key: FLINK-21946
URL: https://issues.apache.org/jira/browse/FLINK-21946
Project: Flink
Issue Type: Bug
Components: Table SQL / Planner
Affects Versions: 1.12.2, 1.11.3
Reporter: lincoln lee
Fix For: 1.13.0
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 will produce Double.NaN result:
{code}double expo = numSel * Math.log(1.0 - 1.0 / dSize);{code}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)