improved odps sql parser, support more 'change column' syntax.

This commit is contained in:
wenshao
2017-04-05 20:14:10 +08:00
parent 99337c1ffb
commit 23d2bf5fe7
6 changed files with 167 additions and 8 deletions
@@ -888,4 +888,13 @@ public class OdpsOutputVisitor extends SQLASTOutputVisitor implements OdpsASTVis
return false;
}
@Override
public boolean visit(SQLAlterTableRenameColumn x) {
print0(ucase ? "CHANGE COLUMN " : "change column ");
x.getColumn().accept(this);
print0(ucase ? " RENAME TO " : " rename to ");
x.getTo().accept(this);
return false;
}
}