You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by "westonpace (via GitHub)" <gi...@apache.org> on 2023/02/02 21:57:06 UTC
[GitHub] [arrow] westonpace commented on issue #20383: [R] Implement asof join
westonpace commented on issue #20383:
URL: https://github.com/apache/arrow/issues/20383#issuecomment-1414428836
Yes, reading those docs it appears that `closest` is a good fit. `(company == id, closest(year >= since))` should equate to:
```
AsofJoinOptions(/*input_keys=*/{
{/*on_key=*/"year", /*by_key=*/{"company"}},
{/*on_key=*/"year", /*by_key=*/{"id"}}
}, "tolerance="since)
```
Although it might be `tolerance=-since`. I always get confused on that :)
--
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: github-unsubscribe@arrow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org