Skip to content

Commit

Permalink
Update dask_sql/physical/rex/core/call.py
Browse files Browse the repository at this point in the history
Co-authored-by: Ayush Dattagupta <[email protected]>
  • Loading branch information
sarahyurick and ayushdg authored Oct 13, 2022
1 parent 198b510 commit 072b5a0
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions dask_sql/physical/rex/core/call.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,7 @@ def as_timelike(op):
return np.timedelta64(op, "D")
elif isinstance(op, str):
return np.datetime64(op)
elif pd.api.types.is_datetime64_dtype(op):
return op
elif isinstance(op, np.timedelta64):
elif pd.api.types.is_datetime64_dtype(op) or isinstance(op, np.timedelta64):
return op
else:
raise ValueError(f"Don't know how to make {type(op)} timelike")
Expand Down

0 comments on commit 072b5a0

Please sign in to comment.