fix(api): handle undefined column type_generic (#15315)

This commit is contained in:
serenajiang 2021-06-23 09:42:00 -07:00 committed by GitHub
parent 7a1223ca7d
commit b295c6ad43
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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: