Uploaded image for project: 'Calcite'
  1. Calcite
  2. CALCITE-6665

Add isEmpty metadata to check if a relational expression returns no rows

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.39.0
    • None

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

              nobigo xiong duan
              nobigo xiong duan
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: