Improve full sort performance for dup removal and grouping
----------------------------------------------------------
Key: TEIID-3119
URL:
https://issues.jboss.org/browse/TEIID-3119
Project: Teiid
Issue Type: Enhancement
Components: Query Engine
Reporter: Steven Hawkins
Assignee: Steven Hawkins
Fix For: 8.9
We perform a full sort for grouping/distinct reusing the existing sorting logic. This is
not as efficient as it could for larger data sets with smaller numbers of groups. A hash
implementation or combining the grouping with the sorting would perform better.