mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
improved hive sql parser support.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user