[
https://issues.apache.org/jira/browse/CALCITE-995?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15032228#comment-15032228
]
Julian Hyde commented on CALCITE-995:
-------------------------------------
I made some review comments in CALCITE-987. Let's discuss there.
> Sort transpose rules might fall in an infinite loop
> ---------------------------------------------------
>
> Key: CALCITE-995
> URL: https://issues.apache.org/jira/browse/CALCITE-995
> Project: Calcite
> Issue Type: Bug
> Components: core
> Affects Versions: 1.6.0
> Reporter: Jesus Camacho Rodriguez
> Assignee: Jesus Camacho Rodriguez
> Fix For: 1.6.0
>
>
> CALCITE-987 introduced the RelMdMaxRowCount metadata provider. By default,
> RelMdMaxRowCount returns Double.MAX, which is causing some infinite loops in
> the current test suite, as Sort will continue being pushed below Union/Join
> (if the estimate row count for Union/Join is Double.MAX).
> I propose to return null by default if we cannot get the maximum number of
> rows, which makes more sense and allows catching this issue.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)