[
https://issues.apache.org/jira/browse/CALCITE-3988?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Haisheng Yuan resolved CALCITE-3988.
------------------------------------
Fix Version/s: 1.24.0
Resolution: Fixed
Fixed in
https://github.com/apache/calcite/commit/7952cd550a7fac127a6cd7db44fd70c9d1e16d50,
thanks for the PR, [~xzh_dz]!
> Intersect in RelMdRowCount doesn't take into account 'intersect all'
> ---------------------------------------------------------------------
>
> Key: CALCITE-3988
> URL: https://issues.apache.org/jira/browse/CALCITE-3988
> Project: Calcite
> Issue Type: Wish
> Reporter: xzh_dz
> Priority: Major
> Fix For: 1.24.0
>
> Time Spent: 0.5h
> Remaining Estimate: 0h
>
> Same as
> [https://issues.apache.org/jira/browse/CALCITE-3287|https://issues.apache.org/jira/browse/CALCITE-3287].
> Intersect in RelMdRowCount.java doesn't take into account 'intersect all' .
> {code:java}
> public Double getRowCount(Intersect rel, RelMetadataQuery mq) {
> Double rowCount = null;
> for (RelNode input : rel.getInputs()) {
> Double partialRowCount = mq.getRowCount(input);
> if (rowCount == null
> || partialRowCount != null && partialRowCount < rowCount) {
> rowCount = partialRowCount;
> }
> }
> return rowCount;
> }
> {code}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)