mirror of
https://github.com/apache/superset.git
synced 2026-04-24 18:44:53 +00:00
chore: Refactor ExploreMixin to power both Datasets (SqlaTable) and Query models (#22853)
This commit is contained in:
@@ -61,7 +61,7 @@ export type ExploreQuery = QueryResponse & {
|
||||
};
|
||||
|
||||
export interface ISimpleColumn {
|
||||
name?: string | null;
|
||||
column_name?: string | null;
|
||||
type?: string | null;
|
||||
is_dttm?: boolean | null;
|
||||
}
|
||||
@@ -216,7 +216,7 @@ export const SaveDatasetModal = ({
|
||||
...formDataWithDefaults,
|
||||
datasource: `${datasetToOverwrite.datasetid}__table`,
|
||||
...(defaultVizType === 'table' && {
|
||||
all_columns: datasource?.columns?.map(column => column.name),
|
||||
all_columns: datasource?.columns?.map(column => column.column_name),
|
||||
}),
|
||||
}),
|
||||
]);
|
||||
@@ -301,7 +301,7 @@ export const SaveDatasetModal = ({
|
||||
...formDataWithDefaults,
|
||||
datasource: `${data.table_id}__table`,
|
||||
...(defaultVizType === 'table' && {
|
||||
all_columns: selectedColumns.map(column => column.name),
|
||||
all_columns: selectedColumns.map(column => column.column_name),
|
||||
}),
|
||||
}),
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user