Repository: incubator-hawq Updated Branches: refs/heads/master c742cd716 -> 217c17c9c
HAWQ-998. Fix test for aggregate-with-null. Project: http://git-wip-us.apache.org/repos/asf/incubator-hawq/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-hawq/commit/217c17c9 Tree: http://git-wip-us.apache.org/repos/asf/incubator-hawq/tree/217c17c9 Diff: http://git-wip-us.apache.org/repos/asf/incubator-hawq/diff/217c17c9 Branch: refs/heads/master Commit: 217c17c9c6291bc5b9c746bb528cedf9dc43220d Parents: c742cd7 Author: stanlyxiang <[email protected]> Authored: Thu Aug 11 14:39:21 2016 +0800 Committer: stanlyxiang <[email protected]> Committed: Thu Aug 11 14:39:21 2016 +0800 ---------------------------------------------------------------------- src/test/feature/query/test_aggregate.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/217c17c9/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 2cb24bf..bc2828b 100644 --- a/src/test/feature/query/test_aggregate.cpp +++ b/src/test/feature/query/test_aggregate.cpp @@ -67,9 +67,9 @@ TEST_F(TestAggregate, TestAggregateWithNull) { dGen.genTableWithNull("t"); util.query( - "select SUM(CASE WHEN a = 15 THEN 1 ELSE 0 END), b ,c from t group by " - "b,c", - "1||aa|\n0||WET|\n0|51||\n"); + "select SUM(CASE WHEN a = 15 THEN 1 ELSE 0 END) as aa, b ,c from t group by b, c " + "order by aa, b, c", + "0|51||\n0||WET|\n1||aa|\n"); } TEST_F(TestAggregate, TestAggregateDerivedWin) {
