support for null values in group-by