improved sql parser.

This commit is contained in:
wenshao
2017-10-16 01:53:58 +08:00
parent 7fe9f468ac
commit c23bdc0907
4 changed files with 60 additions and 3 deletions
@@ -40,7 +40,16 @@ public class SQLServerExprParser extends SQLExprParser {
public final static long[] AGGREGATE_FUNCTIONS_CODES;
static {
String[] strings = { "AVG", "COUNT", "MAX", "MIN", "ROW_NUMBER", "STDDEV", "SUM" };
String[] strings = {
"AVG",
"COUNT",
"FIRST_VALUE",
"MAX",
"MIN",
"ROW_NUMBER",
"STDDEV",
"SUM"
};
AGGREGATE_FUNCTIONS_CODES = FnvHash.fnv1a_64_lower(strings, true);
AGGREGATE_FUNCTIONS = new String[AGGREGATE_FUNCTIONS_CODES.length];
for (String str : strings) {