You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "Jark Wu (Jira)" <ji...@apache.org> on 2021/03/24 10:09:00 UTC
[jira] [Assigned] (FLINK-21946) FlinkRelMdUtil.numDistinctVals
produces exceptional Double.NaN result when domainSize is in range(0,1)
[ https://issues.apache.org/jira/browse/FLINK-21946?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jark Wu reassigned FLINK-21946:
-------------------------------
Assignee: lincoln lee
> 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.11.3, 1.12.2
> Reporter: lincoln lee
> Assignee: lincoln lee
> Priority: Minor
> Labels: pull-request-available
> 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 in calciteās RelMdUtil.numDistinctVals will produce Double.NaN result:
> {code}double expo = numSel * Math.log(1.0 - 1.0 / dSize);{code}
> Before CALCITE-4351 was fixed, we should continue the fixing in flink.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)