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

Vitalie Spinu commented on ARROW-13767:
---------------------------------------

This one turned to be a blocker for us during a conversion of a project from a 
SQL DB to  arrow dataset.

 

How does one go with slicing within a group before this issue is fixed? 

 

 
{code:java}
tbl %>% 
  group_by(simulator, model) %>%
  slice(n = 1) %>%
  collect(){code}
 

 

> [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: 8.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.20.1#820001)

Reply via email to