fix(presto): default unknown types to string type (#10753)

* fix(presto): default unknown types to string type

* lint
This commit is contained in:
Ville Brofeldt
2020-09-22 13:16:54 +03:00
committed by GitHub
parent 448a41a4e7
commit bd140e018a
3 changed files with 20 additions and 7 deletions

View File

@@ -511,3 +511,6 @@ class TestPrestoDbEngineSpec(TestDbEngineSpec):
sqla_type = PrestoEngineSpec.get_sqla_column_type("integer")
assert isinstance(sqla_type, types.Integer)
sqla_type = PrestoEngineSpec.get_sqla_column_type(None)
assert sqla_type is None