dragosmg commented on PR #12855:
URL: https://github.com/apache/arrow/pull/12855#issuecomment-1098850022
I've been thinking a bit about this. Do you think it's worth having a helper
function (to avoid all the repetition), something like `make_duration(x, unit)`?
Where:
```r
make_duration <- function(x, unit) {
x <- build_expr("cast", x, options = cast_options(to_type = int64()))
x$cast(duration(unit))
}
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]