phoenix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rajeshb...@apache.org
Subject phoenix git commit: Enclosing double quotes to period keyword
Date Wed, 10 May 2017 08:39:37 GMT
Repository: phoenix
Updated Branches:
  refs/heads/calcite 4fedd43b5 -> 4075d76e5


Enclosing double quotes to period keyword


Project: http://git-wip-us.apache.org/repos/asf/phoenix/repo
Commit: http://git-wip-us.apache.org/repos/asf/phoenix/commit/4075d76e
Tree: http://git-wip-us.apache.org/repos/asf/phoenix/tree/4075d76e
Diff: http://git-wip-us.apache.org/repos/asf/phoenix/diff/4075d76e

Branch: refs/heads/calcite
Commit: 4075d76e540df82faed9c81c43cc26fc54740c0d
Parents: 4fedd43
Author: Rajeshbabu Chintaguntla <rajeshbabu@apache.org>
Authored: Wed May 10 14:09:19 2017 +0530
Committer: Rajeshbabu Chintaguntla <rajeshbabu@apache.org>
Committed: Wed May 10 14:09:19 2017 +0530

----------------------------------------------------------------------
 .../src/it/java/org/apache/phoenix/end2end/GroupByIT.java      | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/phoenix/blob/4075d76e/phoenix-core/src/it/java/org/apache/phoenix/end2end/GroupByIT.java
----------------------------------------------------------------------
diff --git a/phoenix-core/src/it/java/org/apache/phoenix/end2end/GroupByIT.java b/phoenix-core/src/it/java/org/apache/phoenix/end2end/GroupByIT.java
index 7f64fee..bdd9d00 100644
--- a/phoenix-core/src/it/java/org/apache/phoenix/end2end/GroupByIT.java
+++ b/phoenix-core/src/it/java/org/apache/phoenix/end2end/GroupByIT.java
@@ -456,7 +456,7 @@ public class GroupByIT extends BaseQueryIT {
         Properties props = PropertiesUtil.deepCopy(TEST_PROPERTIES);
         props.setProperty(PhoenixRuntime.CURRENT_SCN_ATTRIB, Long.toString(ts + 10));
         Connection conn = DriverManager.getConnection(getUrl(), props);
-        String ddl = "create table test1(\"time\" integer not null, hostname varchar not
null,usage float,period integer constraint pk PRIMARY KEY(\"time\", hostname))";
+        String ddl = "create table test1(\"time\" integer not null, hostname varchar not
null,usage float,\"period\" integer constraint pk PRIMARY KEY(\"time\", hostname))";
         conn.createStatement().execute(ddl);
         conn.close();
 
@@ -492,7 +492,7 @@ public class GroupByIT extends BaseQueryIT {
         Properties props = PropertiesUtil.deepCopy(TEST_PROPERTIES);
         props.setProperty(PhoenixRuntime.CURRENT_SCN_ATTRIB, Long.toString(ts + 10));
         Connection conn = DriverManager.getConnection(getUrl(), props);
-        String ddl = "create table test1(\"time\" integer not null, hostname varchar not
null,usage float,period integer constraint pk PRIMARY KEY(\"time\", hostname))";
+        String ddl = "create table test1(\"time\" integer not null, hostname varchar not
null,usage float,\"period\" integer constraint pk PRIMARY KEY(\"time\", hostname))";
         conn.createStatement().execute(ddl);
         conn.close();
 
@@ -512,7 +512,7 @@ public class GroupByIT extends BaseQueryIT {
         props.setProperty(PhoenixRuntime.CURRENT_SCN_ATTRIB, Long.toString(ts + 40));
         conn = DriverManager.getConnection(getUrl(), props);
         ResultSet rs;
-        stmt = conn.prepareStatement("select period/10 as tm, hostname, avg(usage) from test1
group by hostname, tm");
+        stmt = conn.prepareStatement("select \"period\"/10 as tm, hostname, avg(usage) from
test1 group by hostname, tm");
         rs = stmt.executeQuery();
         assertTrue(rs.next());
         assertEquals(143985345, rs.getInt(1));


Mime
View raw message