Skip to content

Commit

Permalink
Add test for HAVING without GROUP BY
Browse files Browse the repository at this point in the history
  • Loading branch information
electrum committed Jan 2, 2015
1 parent 0816a2f commit c099423
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1796,6 +1796,13 @@ public void testHaving3()
assertQuery("SELECT custkey, sum(totalprice) * 2 FROM orders GROUP BY custkey HAVING avg(totalprice + 5) > 10");
}

@Test
public void testHavingWithoutGroupBy()
throws Exception
{
assertQuery("SELECT sum(orderkey) FROM orders HAVING sum(orderkey) > 400000");
}

@Test
public void testGroupByAsJoinProbe()
throws Exception
Expand Down

0 comments on commit c099423

Please sign in to comment.