Fix group-by on offset path
This commit is contained in:
parent
65a657a4f2
commit
b20225c63b
|
@ -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() {
|
||||
|
|
Loading…
Reference in New Issue