mirror of
https://github.com/apache/superset.git
synced 2026-04-20 00:24:38 +00:00
fix: Presto column_type_mappings time and timestamp (#12861)
* Fix presto column_type_mappings time and timestamp * Added unit tests
This commit is contained in:
committed by
GitHub
parent
783aae19c9
commit
51195af4fa
@@ -554,6 +554,12 @@ class TestPrestoDbEngineSpec(TestDbEngineSpec):
|
||||
sqla_type = PrestoEngineSpec.get_sqla_column_type("integer")
|
||||
assert isinstance(sqla_type, types.Integer)
|
||||
|
||||
sqla_type = PrestoEngineSpec.get_sqla_column_type("time")
|
||||
assert isinstance(sqla_type, types.Time)
|
||||
|
||||
sqla_type = PrestoEngineSpec.get_sqla_column_type("timestamp")
|
||||
assert isinstance(sqla_type, types.TIMESTAMP)
|
||||
|
||||
sqla_type = PrestoEngineSpec.get_sqla_column_type(None)
|
||||
assert sqla_type is None
|
||||
|
||||
|
||||
Reference in New Issue
Block a user