Repository: tajo Updated Branches: refs/heads/master c87fe2e8c -> 9f873b129
Fixed a test failure by a non-deterministic query. Project: http://git-wip-us.apache.org/repos/asf/tajo/repo Commit: http://git-wip-us.apache.org/repos/asf/tajo/commit/9f873b12 Tree: http://git-wip-us.apache.org/repos/asf/tajo/tree/9f873b12 Diff: http://git-wip-us.apache.org/repos/asf/tajo/diff/9f873b12 Branch: refs/heads/master Commit: 9f873b129de3ac0fc8122528b7e10e46406704d1 Parents: c87fe2e Author: Hyunsik Choi <[email protected]> Authored: Fri Jul 11 20:05:48 2014 +0900 Committer: Hyunsik Choi <[email protected]> Committed: Fri Jul 11 20:05:48 2014 +0900 ---------------------------------------------------------------------- .../test/java/org/apache/tajo/engine/query/TestGroupByQuery.java | 2 +- .../queries/TestGroupByQuery/testGroupByWithConstantKeys2.sql | 2 +- .../results/TestGroupByQuery/testGroupByWithConstantKeys2.result | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/tajo/blob/9f873b12/tajo-core/src/test/java/org/apache/tajo/engine/query/TestGroupByQuery.java ---------------------------------------------------------------------- diff --git a/tajo-core/src/test/java/org/apache/tajo/engine/query/TestGroupByQuery.java b/tajo-core/src/test/java/org/apache/tajo/engine/query/TestGroupByQuery.java index 935e520..41ffa06 100644 --- a/tajo-core/src/test/java/org/apache/tajo/engine/query/TestGroupByQuery.java +++ b/tajo-core/src/test/java/org/apache/tajo/engine/query/TestGroupByQuery.java @@ -149,7 +149,7 @@ public class TestGroupByQuery extends QueryTestCaseBase { @Test public final void testGroupByWithConstantKeys2() throws Exception { // select l_partkey as a, timestamp '2014-07-07 04:28:31.561' as b, '##' as c, count(*) d from lineitem - // group by a, b, c; + // group by a, b, c order by l_partkey; ResultSet res = executeQuery(); assertResultSet(res); cleanupQuery(res); http://git-wip-us.apache.org/repos/asf/tajo/blob/9f873b12/tajo-core/src/test/resources/queries/TestGroupByQuery/testGroupByWithConstantKeys2.sql ---------------------------------------------------------------------- diff --git a/tajo-core/src/test/resources/queries/TestGroupByQuery/testGroupByWithConstantKeys2.sql b/tajo-core/src/test/resources/queries/TestGroupByQuery/testGroupByWithConstantKeys2.sql index 439d049..5a2892d 100644 --- a/tajo-core/src/test/resources/queries/TestGroupByQuery/testGroupByWithConstantKeys2.sql +++ b/tajo-core/src/test/resources/queries/TestGroupByQuery/testGroupByWithConstantKeys2.sql @@ -1 +1 @@ -select l_partkey as a, timestamp '2014-07-07 04:28:31.561' as b, '##' as c, count(*) d from lineitem group by a, b, c; \ No newline at end of file +select l_partkey as a, timestamp '2014-07-07 04:28:31.561' as b, '##' as c, count(*) d from lineitem group by a, b, c order by l_partkey; \ No newline at end of file http://git-wip-us.apache.org/repos/asf/tajo/blob/9f873b12/tajo-core/src/test/resources/results/TestGroupByQuery/testGroupByWithConstantKeys2.result ---------------------------------------------------------------------- diff --git a/tajo-core/src/test/resources/results/TestGroupByQuery/testGroupByWithConstantKeys2.result b/tajo-core/src/test/resources/results/TestGroupByQuery/testGroupByWithConstantKeys2.result index e2a3b89..776db3c 100644 --- a/tajo-core/src/test/resources/results/TestGroupByQuery/testGroupByWithConstantKeys2.result +++ b/tajo-core/src/test/resources/results/TestGroupByQuery/testGroupByWithConstantKeys2.result @@ -1,5 +1,5 @@ a,b,c,d ------------------------------- -3,2014-07-07 04:28:31.561,##,1 1,2014-07-07 04:28:31.561,##,2 -2,2014-07-07 04:28:31.561,##,2 \ No newline at end of file +2,2014-07-07 04:28:31.561,##,2 +3,2014-07-07 04:28:31.561,##,1 \ No newline at end of file
