From f18d16b75905c175e1b5820290c044493fe27e52 Mon Sep 17 00:00:00 2001 From: Ayush Dattagupta Date: Tue, 26 Apr 2022 16:21:08 -0700 Subject: [PATCH] Update reinterpret and timedelta to explicitly cast to int64 instead of int --- dask_sql/mappings.py | 6 +----- dask_sql/physical/rex/core/call.py | 2 +- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/dask_sql/mappings.py b/dask_sql/mappings.py index 5890df279..5b35e391b 100644 --- a/dask_sql/mappings.py +++ b/dask_sql/mappings.py @@ -196,10 +196,6 @@ def sql_to_python_type(sql_type: str) -> type: if sql_type.startswith("CHAR(") or sql_type.startswith("VARCHAR("): return pd.StringDtype() elif sql_type.startswith("INTERVAL"): - interval_type = sql_type.split()[1].lower() - if interval_type in {"year", "quarter", "month"}: - # if sql_type is INTERVAL YEAR, Calcite will covert to months - return np.dtype("timedelta64[M]") return np.dtype("