mirror of
https://github.com/apache/superset.git
synced 2024-09-12 08:39:45 -04:00
fix(api): handle undefined column type_generic (#15315)
This commit is contained in:
parent
7a1223ca7d
commit
b295c6ad43
@ -310,7 +310,7 @@ class BaseDatasource(
|
|||||||
filtered_columns: List[Column] = []
|
filtered_columns: List[Column] = []
|
||||||
column_types: Set[GenericDataType] = set()
|
column_types: Set[GenericDataType] = set()
|
||||||
for column in data["columns"]:
|
for column in data["columns"]:
|
||||||
generic_type = column["type_generic"]
|
generic_type = column.get("type_generic")
|
||||||
if generic_type is not None:
|
if generic_type is not None:
|
||||||
column_types.add(generic_type)
|
column_types.add(generic_type)
|
||||||
if column["column_name"] in column_names:
|
if column["column_name"] in column_names:
|
||||||
|
Loading…
Reference in New Issue
Block a user