Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
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: