mirror of
https://github.com/apache/superset.git
synced 2024-09-12 08:39:45 -04:00
[hotfix] SqlaTable has no attribute column_cls
This commit is contained in:
parent
7d25d171e2
commit
62e3fe2345
@ -1775,8 +1775,8 @@ class Superset(BaseSupersetView):
|
|||||||
for column_name, config in data.get('columns').items():
|
for column_name, config in data.get('columns').items():
|
||||||
is_dim = config.get('is_dim', False)
|
is_dim = config.get('is_dim', False)
|
||||||
SqlaTable = ConnectorRegistry.sources['table']
|
SqlaTable = ConnectorRegistry.sources['table']
|
||||||
TableColumn = SqlaTable.column_cls
|
TableColumn = SqlaTable.column_class
|
||||||
SqlMetric = SqlaTable.metric_cls
|
SqlMetric = SqlaTable.metric_class
|
||||||
col = TableColumn(
|
col = TableColumn(
|
||||||
column_name=column_name,
|
column_name=column_name,
|
||||||
filterable=is_dim,
|
filterable=is_dim,
|
||||||
|
Loading…
Reference in New Issue
Block a user