improved odps sql formmatter

This commit is contained in:
shaojin.wensj
2015-07-28 23:33:01 +08:00
parent 3de275fa8c
commit 9d45ec9d12
4 changed files with 64 additions and 4 deletions
@@ -562,12 +562,16 @@ public class SQLASTOutputVisitor extends SQLASTVisitorAdapter implements Printab
x.getOwner().accept(this);
print(".");
}
print(x.getMethodName());
printFunctionName(x.getMethodName());
print("(");
printAndAccept(x.getParameters(), ", ");
print(")");
return false;
}
protected void printFunctionName(String name) {
print(name);
}
public boolean visit(SQLAggregateExpr x) {
print(x.getMethodName());