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

Druid adapter: "GROUP BY ()" on empty relation should return 1 row

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • 1.16.0
    • druid-adapter
    • None

    Description

      A "GROUP BY ()" query on an empty relation should return 1 row, but currently returns 0 rows.

      Test case in DruidAdapterIT:

        @Test public void testSelectCountEmpty() {
          sql("select count(*) as c from \"foodmart\" where \"product_id\" < 0")
              .returnsUnordered("C=0");
        }
      

      The query should return one row, but returns 0 rows.

      Attachments

        Activity

          People

            Unassigned Unassigned
            julianhyde Julian Hyde
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: