hawq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hubertzh...@apache.org
Subject incubator-hawq git commit: HAWQ-818. Add order by for aggregate feature test.
Date Wed, 15 Jun 2016 06:55:47 GMT
Repository: incubator-hawq
Updated Branches:
  refs/heads/master 09c8b8589 -> 37dcd1ed6


HAWQ-818. Add order by for aggregate feature test.


Project: http://git-wip-us.apache.org/repos/asf/incubator-hawq/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-hawq/commit/37dcd1ed
Tree: http://git-wip-us.apache.org/repos/asf/incubator-hawq/tree/37dcd1ed
Diff: http://git-wip-us.apache.org/repos/asf/incubator-hawq/diff/37dcd1ed

Branch: refs/heads/master
Commit: 37dcd1ed6ae5db2d2a2cde0d906b6522edebf10e
Parents: 09c8b85
Author: hzhang2 <zhanghuan929@163.com>
Authored: Wed Jun 15 14:50:03 2016 +0800
Committer: hzhang2 <zhanghuan929@163.com>
Committed: Wed Jun 15 14:55:35 2016 +0800

----------------------------------------------------------------------
 src/test/feature/query/test_aggregate.cpp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/37dcd1ed/src/test/feature/query/test_aggregate.cpp
----------------------------------------------------------------------
diff --git a/src/test/feature/query/test_aggregate.cpp b/src/test/feature/query/test_aggregate.cpp
index f8f93e9..337ef3c 100644
--- a/src/test/feature/query/test_aggregate.cpp
+++ b/src/test/feature/query/test_aggregate.cpp
@@ -45,8 +45,8 @@ TEST_F(TestAggregate, TestCreateAggregate) {
   util.execute("drop table if exists t");
   hawq::test::DataGenerator dGen(&util);
   dGen.genSimpleTable("t");
-  util.query("select avg(b) from t group by a","3|\n62|\n15|\n");
-  util.query("select newavg(b) from t group by a","3|\n15|\n62|\n");
+  util.query("select avg(b) as bavg from t group by a order by bavg","3|\n15|\n62|\n");
+  util.query("select newavg(b) as bavg from t group by a order by bavg","3|\n15|\n62|\n");
 }
 
 


Mime
View raw message