feat: add type_generic and is_dttm to table metadata (#14863)

This commit is contained in:
Yongjie Zhao
2021-06-03 01:20:47 +01:00
committed by GitHub
parent 53505c2acb
commit e6bc7c99e7
4 changed files with 25 additions and 4 deletions

View File

@@ -379,6 +379,7 @@ class DatasourceEditor extends React.PureComponent {
}
setColumns(obj) {
// update calculatedColumns or databaseColumns
this.setState(obj, this.validateAndChange);
}
@@ -414,13 +415,18 @@ class DatasourceEditor extends React.PureComponent {
type: col.type,
groupby: true,
filterable: true,
is_dttm: col.is_dttm,
});
results.added.push(col.name);
} else if (currentCol.type !== col.type) {
} else if (
currentCol.type !== col.type ||
currentCol.is_dttm !== col.is_dttm
) {
// modified column
finalColumns.push({
...currentCol,
type: col.type,
is_dttm: col.is_dttm,
});
results.modified.push(col.name);
} else {