mirror of
https://github.com/apache/superset.git
synced 2024-09-12 00:29:39 -04:00
fix(datasets): Include expression and description in duplicated dataset columns (#22943)
This commit is contained in:
parent
56d4bd063c
commit
4b05a1eddd
@ -76,10 +76,12 @@ class DuplicateDatasetCommand(CreateMixin, BaseCommand):
|
|||||||
col = TableColumn(
|
col = TableColumn(
|
||||||
column_name=column_name,
|
column_name=column_name,
|
||||||
verbose_name=config_.verbose_name,
|
verbose_name=config_.verbose_name,
|
||||||
|
expression=config_.expression,
|
||||||
filterable=True,
|
filterable=True,
|
||||||
groupby=True,
|
groupby=True,
|
||||||
is_dttm=config_.is_dttm,
|
is_dttm=config_.is_dttm,
|
||||||
type=config_.type,
|
type=config_.type,
|
||||||
|
description=config_.description,
|
||||||
)
|
)
|
||||||
cols.append(col)
|
cols.append(col)
|
||||||
table.columns = cols
|
table.columns = cols
|
||||||
|
Loading…
Reference in New Issue
Block a user