Is your feature request related to a problem? Please describe.
To support arithmetic on timestamps, we need duration types.
We need to support difference between every resolution of timestamp i.e. days, seconds, milliseconds, microseconds and nanoseconds.
Describe the solution you'd like
It should be based on std::chrono::duration in libcu++.
See also #4074
add_months api (#5931)It's possible I missed a discussion regarding this.
But, just to clarify, does this need one duration type or multiple? (duration_s, duration_ms, duration_ms, duration_ns). Asking because duration_ns would be required to support differences involving timestamp_ns but wouldn't be able to represent the full range of differences between two timestamp_s.
does this need one duration type or multiple?
Unfortunately, multiple. I believe we need a duration type for every resolution of timestamp.
does this need one duration type or multiple?
Unfortunately, multiple. I believe we need a duration type for every resolution of timestamp.
Ok, I'll reword the issue
Bumping this to 0.16 as the cuIO piece will not land in 0.15.
parquet support for duration (https://github.com/rapidsai/cudf/pull/5903) is already done. ORC does not support duration (INTERVAL) type.
duration support for JSON and CSV only is pending in cuIO.
All features for duration type are complete.
Most helpful comment
parquet support for duration (https://github.com/rapidsai/cudf/pull/5903) is already done. ORC does not support duration (INTERVAL) type.
duration support for JSON and CSV only is pending in cuIO.