You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@arrow.apache.org by "Neal Richardson (Jira)" <ji...@apache.org> on 2021/09/20 13:58:00 UTC

[jira] [Commented] (ARROW-13767) [R] Add Arrow methods slice(), slice_head(), slice_tail()

    [ https://issues.apache.org/jira/browse/ARROW-13767?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17417668#comment-17417668 ] 

Neal Richardson commented on ARROW-13767:
-----------------------------------------

I'm not sure about these (and about head/tail in general now) since dataset scans are no longer in deterministic order. How do dbplyr backends support these for databases that behave similarly?

> [R] Add Arrow methods slice(), slice_head(), slice_tail()
> ---------------------------------------------------------
>
>                 Key: ARROW-13767
>                 URL: https://issues.apache.org/jira/browse/ARROW-13767
>             Project: Apache Arrow
>          Issue Type: Improvement
>          Components: R
>            Reporter: Ian Cook
>            Priority: Major
>              Labels: query-engine
>             Fix For: 7.0.0
>
>
> Implement [{{slice()}}, {{slice_head()}}, and {{slice_tail()}}|https://dplyr.tidyverse.org/reference/slice.html] methods for {{ArrowTabular}}, {{Dataset}}, and {{arrow_dplyr_query}} objects . I believe this should be relatively straightforward, using {{Take()}} to return only the specified rows. We already have a {{head()}} method which I believe we can reuse for {{slice_head()}}.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)