add hive sql parser

This commit is contained in:
温少
2012-02-25 20:19:10 +08:00
parent ded9087df0
commit e1a394c159
22 changed files with 638 additions and 95 deletions
@@ -37,7 +37,7 @@ public class SQLCreateTableParser extends SQLDDLParser {
accept(Token.CREATE);
}
SQLCreateTableStatement createTable = new SQLCreateTableStatement();
SQLCreateTableStatement createTable = newCreateStatement();
if (lexer.token() == Token.IDENTIFIER && lexer.stringVal().equalsIgnoreCase("GLOBAL")) {
lexer.nextToken();
@@ -97,4 +97,8 @@ public class SQLCreateTableParser extends SQLDDLParser {
return createTable;
}
protected SQLCreateTableStatement newCreateStatement() {
return new SQLCreateTableStatement();
}
}