mirror of https://github.com/apache/superset.git
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] = []
|
||||
column_types: Set[GenericDataType] = set()
|
||||
for column in data["columns"]:
|
||||
generic_type = column["type_generic"]
|
||||
generic_type = column.get("type_generic")
|
||||
if generic_type is not None:
|
||||
column_types.add(generic_type)
|
||||
if column["column_name"] in column_names:
|
||||
|
|
Loading…
Reference in New Issue