This is an automated email from the ASF dual-hosted git repository.
elizabeth pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/superset.git
The following commit(s) were added to refs/heads/master by this push:
new 89ce7ba0b0 fix: do not add calculated columns when syncing (#32761)
89ce7ba0b0 is described below
commit 89ce7ba0b0dc83e44166672136fd62d58aef3f08
Author: Elizabeth Thompson <[email protected]>
AuthorDate: Wed Mar 19 17:33:28 2025 -0700
fix: do not add calculated columns when syncing (#32761)
---
superset-frontend/src/components/Datasource/DatasourceEditor.jsx | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/superset-frontend/src/components/Datasource/DatasourceEditor.jsx
b/superset-frontend/src/components/Datasource/DatasourceEditor.jsx
index 9462056390..057cff7b34 100644
--- a/superset-frontend/src/components/Datasource/DatasourceEditor.jsx
+++ b/superset-frontend/src/components/Datasource/DatasourceEditor.jsx
@@ -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) {