bug fixed for hive sql format, fix #4092

This commit is contained in:
高铁
2020-12-26 06:54:58 +08:00
parent 0cdc717924
commit 78dc22fbfd
5 changed files with 17 additions and 13 deletions
@@ -10398,6 +10398,13 @@ public class SQLASTOutputVisitor extends SQLASTVisitorAdapter implements Paramet
print0(ucase ? " BUCKETS" : " buckets");
}
SQLExprTableSource like = x.getLike();
if (like != null) {
println();
print0(ucase ? "LIKE " : "like ");
like.accept(this);
}
SQLExpr storedAs = x.getStoredAs();
if (storedAs != null) {
println();
@@ -10441,13 +10448,6 @@ public class SQLASTOutputVisitor extends SQLASTVisitorAdapter implements Paramet
println();
visit(select);
}
SQLExprTableSource like = x.getLike();
if (like != null) {
println();
print0(ucase ? "LIKE " : "like ");
like.accept(this);
}
}
protected void printSerdeProperties(Map<String, SQLObject> serdeProperties) {