Skip to content

Commit f562c3f

Browse files
ehsantnscott-routledge2
authored andcommitted
Fix datetime array gatherv (#431)
(cherry picked from commit 2da68bd)
1 parent 3549970 commit f562c3f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

bodo/libs/distributed_api.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -1978,7 +1978,10 @@ def get_value_for_type(dtype, use_arrow_time=False): # pragma: no cover
19781978

19791979
# DatetimeArray
19801980
if isinstance(dtype, DatetimeArrayType):
1981-
return pd.array([pd.Timestamp("2024/1/1", tz=dtype.tz)])
1981+
return pd.array(
1982+
[pd.Timestamp("2024/1/1", tz=dtype.tz)],
1983+
pd.ArrowDtype(pa.timestamp("ns", tz=dtype.tz)),
1984+
)
19821985

19831986
# TimestampTZ array
19841987
if dtype == bodo.timestamptz_array_type:

0 commit comments

Comments
 (0)