Skip to content

Commit

Permalink
edit
Browse files Browse the repository at this point in the history
  • Loading branch information
usfalami committed Sep 18, 2024
1 parent 97df2ec commit 121f91e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/org/usf/jquery/core/OperationColumn.java
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,10 @@ public int columns(QueryBuilder builder, Consumer<? super DBColumn> groupKeys) {

private int resolveOverColumns(QueryBuilder builder, Consumer<? super DBColumn> groupKeys) {
requireAtLeastNArgs(1, args, ()-> "over");
var lvl = Nested.tryResolveColumn(builder, groupKeys, args[0])-1;
var lvl = Nested.tryResolveColumn(builder, groupKeys, args[0])-1; //nested aggregate function
return args.length == 1
? lvl
: Math.max(lvl, Nested.tryResolveColumn(builder, groupKeys, args[1]));
: Math.max(lvl, Nested.tryResolveColumn(builder, groupKeys, args[1])); //partition
}

@Override
Expand Down

0 comments on commit 121f91e

Please sign in to comment.