A helper class for aggregate functions that can be implemented in terms of catalyst expressions.
Utility functions used by the query planner to convert our plan to new aggregation code path.