mirror of
https://github.com/apache/superset.git
synced 2026-04-19 08:04:53 +00:00
fix: do not add calculated columns when syncing (#32761)
This commit is contained in:
committed by
GitHub
parent
376a1f49d3
commit
89ce7ba0b0
@@ -715,7 +715,11 @@ class DatasourceEditor extends PureComponent {
|
||||
newCols,
|
||||
this.props.addSuccessToast,
|
||||
);
|
||||
this.setColumns({ databaseColumns: columnChanges.finalColumns });
|
||||
this.setColumns({
|
||||
databaseColumns: columnChanges.finalColumns.filter(
|
||||
col => !col.expression, // remove calculated columns
|
||||
),
|
||||
});
|
||||
this.props.addSuccessToast(t('Metadata has been synced'));
|
||||
this.setState({ metadataLoading: false });
|
||||
} catch (error) {
|
||||
|
||||
Reference in New Issue
Block a user