Skip to content
This repository was archived by the owner on May 12, 2021. It is now read-only.
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,23 @@ public final void testGroupByWithSameConstantKeys1() throws Exception {
cleanupQuery(res);
}

@Test
public final void testGroupByWithConstantKeys1() throws Exception {
// select 123 as key, count(1) as total from lineitem group by key order by key, total;
ResultSet res = executeQuery();
assertResultSet(res);
cleanupQuery(res);
}

@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;
ResultSet res = executeQuery();
assertResultSet(res);
cleanupQuery(res);
}

@Test
public final void testDistinctAggregation1() throws Exception {
// select l_orderkey, max(l_orderkey) as maximum, count(distinct l_linenumber) as unique_key from lineitem
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +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;
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
key,total
-------------------------------
123,5
Original file line number Diff line number Diff line change
@@ -0,0 +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