mirror of
https://github.com/apache/superset.git
synced 2024-09-12 00:29:39 -04:00
Use connector registry to fetch the table column class. (#2419)
This commit is contained in:
parent
4ded37e71e
commit
20aec3cfca
@ -1792,7 +1792,9 @@ class Superset(BaseSupersetView):
|
||||
metrics = []
|
||||
for column_name, config in data.get('columns').items():
|
||||
is_dim = config.get('is_dim', False)
|
||||
col = models.TableColumn(
|
||||
SqlaTable = ConnectorRegistry.sources['table']
|
||||
TableColumn = SqlaTable.column_cls
|
||||
col = TableColumn(
|
||||
column_name=column_name,
|
||||
filterable=is_dim,
|
||||
groupby=is_dim,
|
||||
|
Loading…
Reference in New Issue
Block a user