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

In Druid adapter, "pagingIdentifiers" might have more than one value

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.11.0
    • Component/s: druid
    • Labels:
      None

      Description

      When segmentGranularity is coarse, all data may be fit into just one segment. But it should not assume there's only one segment. So pagingIdentifiers may have more than one value.

      Here is a typical error stack:

      java.lang.RuntimeException: expected END_OBJECT, got FIELD_NAME
      	at org.apache.calcite.adapter.druid.DruidConnectionImpl.expect(DruidConnectionImpl.java:330)
      	at org.apache.calcite.adapter.druid.DruidConnectionImpl.parse(DruidConnectionImpl.java:195)
      	at org.apache.calcite.adapter.druid.DruidConnectionImpl.request(DruidConnectionImpl.java:103)
      	at org.apache.calcite.adapter.druid.DruidQuery$DruidQueryNode.run(DruidQuery.java:936)
      	at org.apache.calcite.interpreter.Interpreter.start(Interpreter.java:114)
      	at org.apache.calcite.interpreter.Interpreter.enumerator(Interpreter.java:92)
      	at org.apache.calcite.linq4j.EnumerableDefaults$15$1.<init>(EnumerableDefaults.java:1890)
      	at org.apache.calcite.linq4j.EnumerableDefaults$15.enumerator(EnumerableDefaults.java:1889)
      	at org.apache.calcite.linq4j.AbstractEnumerable.iterator(AbstractEnumerable.java:33)
      	at org.apache.calcite.avatica.MetaImpl.createCursor(MetaImpl.java:77)
      	at org.apache.calcite.avatica.AvaticaResultSet.execute(AvaticaResultSet.java:190)
      	at org.apache.calcite.jdbc.CalciteResultSet.execute(CalciteResultSet.java:77)
      	at org.apache.calcite.jdbc.CalciteResultSet.execute(CalciteResultSet.java:49)
      	at org.apache.calcite.avatica.AvaticaConnection$1.execute(AvaticaConnection.java:605)
      

      PRs:

        Attachments

          Activity

            People

            • Assignee:
              julianhyde Julian Hyde
              Reporter:
              VcamX Jiarong Wei
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: