improved sql parser.

This commit is contained in:
wenshao
2017-09-13 20:56:20 +08:00
parent c49078c650
commit f208f42e01
33 changed files with 853 additions and 29 deletions
@@ -119,6 +119,10 @@ public class ParameterizedOutputVisitorUtils {
return new PhoenixOutputVisitor(out, true);
}
if (JdbcUtils.ELASTIC_SEARCH.equals(dbType)) {
return new MySqlOutputVisitor(out, true);
}
return new SQLASTOutputVisitor(out, true);
}
}
@@ -1897,9 +1897,6 @@ public class SQLASTOutputVisitor extends SQLASTVisitorAdapter implements Paramet
protected void printTableSourceExpr(SQLExpr expr) {
if (exportTables) {
if (expr instanceof SQLIdentifierExpr) {
}
addTable(expr.toString());
}