mirror of
https://github.com/apache/superset.git
synced 2026-05-11 10:55:43 +00:00
feat: add type_generic and is_dttm to table metadata (#14863)
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user