-
Timestamps can be converted between different time unit, but Durations can only be reinterpreted from/to int64. Is it possible to convert between Durations in different time unit? pub fn can_cast_types(from_type: &DataType, to_type: &DataType) -> bool {
...
(Timestamp(_, _), Timestamp(_, _) | ...) => true,
...
(Int64, Duration(_)) => true,
(Duration(_), Int64) => true,
...
} |
Beta Was this translation helpful? Give feedback.
Answered by
tustvold
Sep 24, 2024
Replies: 1 comment 3 replies
-
cc @alamb @tustvold or if you know who are familiar with this sort of APIs. |
Beta Was this translation helpful? Give feedback.
3 replies
# for free
to join this conversation on GitHub.
Already have an account?
# to comment
Adding support to the cast kernels for these makes sense to me and can likely follow the pattern for Timestamps