Github user vvysotskyi commented on the issue:
https://github.com/apache/drill/pull/1066
@amansinha100, regarding HashAggregate OOM related change, it was done in
the scope of this pull request since with new Calcite a physical plan for the
query was changed to the correct one but it caused an infinite loop in HashAgg
operator. Therefore I made these changes in order to prevent this infinite loop
for the queries that previously worked.
I still think that it is better to keep this change in this PR.
---