schaffman5 commented on issue #29664: URL: https://github.com/apache/arrow/issues/29664#issuecomment-2812663350
Following up on this issue, it would be great if dictionaries created from factors could be handled natively with dplyr functions without casting to a character vector where level information and ordering gets lost. A couple of other examples: ``` arrow::Table$create(iris) %>% dplyr::filter(grepl("vir", Species)) %>% collect() Error in `compute.arrow_dplyr_query()`: ! NotImplemented: Function 'match_substring_regex' has no kernel matching input types (dictionary<values=string, indices=int8, ordered=0>) ``` and sorting with arrange so that factor levels are respected: ``` arrow::Table$create(ggplot2::diamonds) %>% dplyr::arrange(cut) %>% collect() Error in `compute.arrow_dplyr_query()`: ! NotImplemented: dictionary<values=string, indices=int8, ordered=1> ``` -- 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-unsubscr...@arrow.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org