improved sql parser phoenix support.

This commit is contained in:
wenshao
2016-09-15 16:24:58 +08:00
parent 53c3f98bb2
commit 67f0945bcd
6 changed files with 179 additions and 2 deletions
@@ -1077,7 +1077,15 @@ public class SQLASTOutputVisitor extends SQLASTVisitorAdapter implements Printab
}
print0(", ");
}
x.getColumns().get(i).accept(this);
SQLExpr column = x.getColumns().get(i);
column.accept(this);
String dataType = (String) column.getAttribute("dataType");
if (dataType != null) {
print(' ');
print(dataType);
}
}
print(')');
decrementIndent();