support nut deduplication

This commit is contained in:
Yako
2015-01-08 17:39:01 +08:00
parent eeb7c991cc
commit f53e723585
2 changed files with 4 additions and 1 deletions
@@ -911,6 +911,9 @@ public class SQLExprParser extends SQLParser {
} else if (lexer.token() == Token.DISTINCT) {
aggregateExpr = new SQLAggregateExpr(methodName, SQLAggregateOption.DISTINCT);
lexer.nextToken();
} else if (identifierEquals("DEDUPLICATION")) { //just for nut
aggregateExpr = new SQLAggregateExpr(methodName, SQLAggregateOption.DEDUPLICATION);
lexer.nextToken();
} else {
aggregateExpr = new SQLAggregateExpr(methodName);
}