From e0750be5ee37bb13221ae2a25f4d45edee2106f5 Mon Sep 17 00:00:00 2001 From: gerrymanoim Date: Mon, 14 Feb 2022 16:41:04 -0500 Subject: [PATCH] fix: change TimestampType to Timestamp In datafusion backend. I believe this is the correct type as I can't find `TimestampType` in `ibis.expr.datatypes`. --- ibis/backends/datafusion/datatypes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ibis/backends/datafusion/datatypes.py b/ibis/backends/datafusion/datatypes.py index 9d0c9c764a86..f66a3d1ee30b 100644 --- a/ibis/backends/datafusion/datatypes.py +++ b/ibis/backends/datafusion/datatypes.py @@ -39,7 +39,7 @@ def from_pyarrow_primitive(arrow_type, nullable=True): @dt.dtype.register(pa.TimestampType) def from_pyarrow_timestamp(arrow_type, nullable=True): - return dt.TimestampType(timezone=arrow_type.tz) + return dt.Timestamp(timezone=arrow_type.tz) @sch.infer.register(pa.Schema)