if (ast.getToken().getType() == HiveParser.TOK_ALTERVIEW_AS) {
isAlterViewAs = true;
orReplace = true;
}
createVwDesc = new CreateViewDesc(
tableName, cols, comment, tblProps, partColNames,
ifNotExists, orReplace, isAlterViewAs);
unparseTranslator.enable();
rootTasks.add(TaskFactory.get(new DDLWork(getInputs(), getOutputs(),