Fix group-by on offset path

This commit is contained in:
Michael Buckley 2024-09-29 22:54:32 -04:00
parent 65a657a4f2
commit b20225c63b
1 changed files with 4 additions and 1 deletions

View File

@ -1477,7 +1477,10 @@ public class QueryStack {
public void addGrouping() {
BaseJoiningPredicateBuilder firstPredicateBuilder = mySqlBuilder.getOrCreateFirstPredicateBuilder();
mySqlBuilder.getSelect().addGroupings(firstPredicateBuilder.getJoinColumns());
//mySqlBuilder.getSelect().addGroupings(firstPredicateBuilder.getJoinColumns());
// we always select partition_id, even if not joining.
mySqlBuilder.getSelect().addGroupings(new DbColumn[] {firstPredicateBuilder.getPartitionIdColumn(), firstPredicateBuilder.getResourceIdColumn()});
}
public void addOrdering() {