mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
improved odps sql formatter
This commit is contained in:
@@ -1283,7 +1283,7 @@ public class SQLASTOutputVisitor extends SQLASTVisitorAdapter implements Printab
|
||||
print(",");
|
||||
} else {
|
||||
println();
|
||||
print(JoinType.toString(x.getJoinType()));
|
||||
printJoinType(x.getJoinType());
|
||||
}
|
||||
print(" ");
|
||||
x.getRight().accept(this);
|
||||
@@ -1311,6 +1311,10 @@ public class SQLASTOutputVisitor extends SQLASTVisitorAdapter implements Printab
|
||||
return false;
|
||||
}
|
||||
|
||||
protected void printJoinType(JoinType joinType) {
|
||||
print(JoinType.toString(joinType));
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean visit(ValuesClause x) {
|
||||
print("(");
|
||||
|
||||
Reference in New Issue
Block a user