You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@calcite.apache.org by "xiong duan (Jira)" <ji...@apache.org> on 2024/12/18 01:15:00 UTC

[jira] [Assigned] (CALCITE-6665) Add isEmpty metadata to check if a relational expression returns no rows

     [ https://issues.apache.org/jira/browse/CALCITE-6665?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

xiong duan reassigned CALCITE-6665:
-----------------------------------

    Assignee: xiong duan

> Add isEmpty metadata to check if a relational expression returns no rows
> ------------------------------------------------------------------------
>
>                 Key: CALCITE-6665
>                 URL: https://issues.apache.org/jira/browse/CALCITE-6665
>             Project: Calcite
>          Issue Type: Improvement
>            Reporter: xiong duan
>            Assignee: xiong duan
>            Priority: Major
>
> In Calcite, there are many times to determine whether a relational expression returns 0 rows through maxRowCount.
> But some places use `maxRowCount<=1D` while others use `maxRowCount ==0D`.
> This PR mainly aims to add `@Nullable Boolean RelMetadataQuery.isEmpty(RelNode)` to unify this behavior.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)