hbase support

This commit is contained in:
温少
2012-05-21 04:31:47 +08:00
parent a2ba044679
commit 647fc890aa
11 changed files with 165 additions and 21 deletions
@@ -191,6 +191,13 @@ public class SQLStatementParser extends SQLParser {
statementList.add(stmt);
continue;
}
if (identifierEquals("SHOW")) {
SQLStatement stmt = parseShow();
statementList.add(stmt);
continue;
}
if (lexer.token() == Token.LPAREN) {
char mark_ch = lexer.current();
@@ -236,6 +243,10 @@ public class SQLStatementParser extends SQLParser {
public SQLStatement parseCommit() {
throw new ParserException("TODO " + lexer.token() + " " + lexer.stringVal());
}
public SQLStatement parseShow() {
throw new ParserException("TODO " + lexer.token() + " " + lexer.stringVal());
}
public SQLUseStatement parseUse() {
accept(Token.USE);