c.token("(");
c.newLine();
c.indent(+1);
HiveFieldInfo[] fields = table.getFields().toArray(new HiveFieldInfo[table.getFields().size()]);
for (int i = 0; i < fields.length; i++) {
HiveFieldInfo field = fields[i];
c.name(field.getFieldName());
c.token(field.getFieldTypeInfo().getQualifiedName());
if (field.getFieldComment() != null) {
c.token("COMMENT");
c.string(field.getFieldComment());
}
if (i != fields.length - 1) {
c.token(",");
}
c.newLine();