@Test
public void testApproxSetGroupByWithOnlyNullsInOneGroup()
throws Exception
{
MaterializedResult actual = computeActual("" +
"SELECT orderstatus, cardinality(approx_set(IF(orderstatus != 'O', custkey))) " +
"FROM orders " +
"GROUP BY orderstatus");
MaterializedResult expected = resultBuilder(getSession(), actual.getTypes())
.row("O", null)
.row("F", 995)
.row("P", 304)
.build();
assertEqualsIgnoreOrder(actual.getMaterializedRows(), expected.getMaterializedRows());
}