Description
Update: The title of this jira has been changed to "Eliminate hash table lookup if there is no grouping key in aggregation.". For the Max and Min expressions, we can revisit them later if we find a better way to improve the performance and open a new jira.
The original title of this JIRA is "AggregateFunction2's Max is slower than AggregateExpression1's MaxFunction". Below is the original description:
Looks like Max (probably Min) implemented based on AggregateFunction2 is slower than the old MaxFunction.