calcite-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jh...@apache.org
Subject [1/6] calcite git commit: [CALCITE-1279] Druid "select" query gives ClassCastException [Forced Update!]
Date Thu, 09 Jun 2016 00:46:09 GMT
Repository: calcite
Updated Branches:
  refs/heads/branch-1.8 8e2ac9c98 -> 4987d5406 (forced update)


[CALCITE-1279] Druid "select" query gives ClassCastException


Project: http://git-wip-us.apache.org/repos/asf/calcite/repo
Commit: http://git-wip-us.apache.org/repos/asf/calcite/commit/23c8e458
Tree: http://git-wip-us.apache.org/repos/asf/calcite/tree/23c8e458
Diff: http://git-wip-us.apache.org/repos/asf/calcite/diff/23c8e458

Branch: refs/heads/branch-1.8
Commit: 23c8e4588c2c23703cb90ad66e51b90a8a53d7df
Parents: a02da27
Author: Julian Hyde <jhyde@apache.org>
Authored: Wed Jun 8 12:55:22 2016 -0700
Committer: Julian Hyde <jhyde@apache.org>
Committed: Wed Jun 8 17:22:29 2016 -0700

----------------------------------------------------------------------
 .../main/java/org/apache/calcite/adapter/druid/DruidQuery.java  | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/calcite/blob/23c8e458/druid/src/main/java/org/apache/calcite/adapter/druid/DruidQuery.java
----------------------------------------------------------------------
diff --git a/druid/src/main/java/org/apache/calcite/adapter/druid/DruidQuery.java b/druid/src/main/java/org/apache/calcite/adapter/druid/DruidQuery.java
index bc51e88..0a9dbec 100644
--- a/druid/src/main/java/org/apache/calcite/adapter/druid/DruidQuery.java
+++ b/druid/src/main/java/org/apache/calcite/adapter/druid/DruidQuery.java
@@ -399,9 +399,8 @@ public class DruidQuery extends AbstractRelNode implements BindableRel
{
         generator.writeFieldName("pagingSpec");
         generator.writeStartObject();
         final int fetch =
-            Integer.parseInt(
-                CalciteConnectionProperty.DRUID_FETCH.wrap(new Properties())
-                    .getString());
+            CalciteConnectionProperty.DRUID_FETCH.wrap(new Properties())
+                .getInt();
         generator.writeNumberField("threshold", fetch);
         generator.writeEndObject();
 


Mime
View raw message