mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
bug fixed for hive sql format, fix #4092
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user