// TODO BUG? select sum() from fact, no aggr by public boolean hasAggregation() { return !aggrGroupBy.isEmpty() || !aggrMetrics.isEmpty(); }