improved hive sql parser support.

This commit is contained in:
wenshao
2017-11-30 17:05:19 +08:00
parent a7e7046ed8
commit ade87e4b8e
16 changed files with 105 additions and 118 deletions
@@ -60,6 +60,7 @@ public class SQLCreateTableStatement extends SQLStatementImpl implements SQLDDLS
protected boolean onCommitDeleteRows;
// for hive & odps
protected SQLExternalRecordFormat rowFormat;
protected final List<SQLColumnDefinition> partitionColumns = new ArrayList<SQLColumnDefinition>(2);
protected final List<SQLName> clusteredBy = new ArrayList<SQLName>();
protected final List<SQLSelectOrderByItem> sortedBy = new ArrayList<SQLSelectOrderByItem>();
@@ -1094,4 +1095,15 @@ public class SQLCreateTableStatement extends SQLStatementImpl implements SQLDDLS
}
this.partitionColumns.add(column);
}
public SQLExternalRecordFormat getRowFormat() {
return rowFormat;
}
public void setRowFormat(SQLExternalRecordFormat x) {
if (x != null) {
x.setParent(this);
}
this.rowFormat = x;
}
}