Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Implemented
-
None
Description
Due to CALCITE-4351 FlinkRelMdDistinctRowCount#getDistinctRowCount(Calc) will always return 0 when number of rows are large.
What I would suggest is to introduce our own FlinkRelMdUtil#numDistinctVals to treat small and large inputs in different ways. For small inputs we use the more precise RelMdUtil#numDistinctVals and for large inputs we copy the old, approximated implementation of RelMdUtil#numDistinctVals.
This is a temporary solution. When CALCITE-4351 is fixed we should revert this commit.
Attachments
Issue Links
- is caused by
-
CALCITE-4351 RelMdUtil#numDistinctVals always returns 0 for large inputs
- Closed
-
FLINK-16579 Upgrade Calcite version to 1.26 for Flink SQL
- Closed
- links to