fixed sql parser for odps alter table drop partition statement.

This commit is contained in:
wenshao
2017-01-11 16:41:23 +08:00
parent b5867e7c5e
commit e6341c4a89
3 changed files with 13 additions and 14 deletions
@@ -2838,8 +2838,8 @@ public class SQLASTOutputVisitor extends SQLASTVisitorAdapter implements Paramet
@Override
public boolean visit(SQLAlterTableDropPartition x) {
print0(ucase ? "DROP " : "drop ");
if (x.isIfNotExists()) {
print0(ucase ? "IF NOT EXISTS " : "if not exists ");
if (x.isIfExists()) {
print0(ucase ? "IF EXISTS " : "if exists ");
}
print0(ucase ? "PARTITION " : "partition ");