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

Jameel Alsalam commented on ARROW-13022:
----------------------------------------

[~npr] For me with nightly installed I am seeing the same behavior (nightly 
showing for me as R package version 5.0.0.2). Also tested here via 
call_function.

 

``` r
# install.packages("arrow", repos = "https://arrow-r-nightly.s3.amazonaws.com";)
packageVersion("arrow")
#> [1] '5.0.0.2'

library(arrow)
#> 
#> Attaching package: 'arrow'
#> The following object is masked from 'package:utils':
#> 
#> timestamp
suppressPackageStartupMessages(library(dplyr))
suppressPackageStartupMessages(library(lubridate))

test_date <- as.POSIXct("2017-01-01 00:00:12.3456789", tz = "")

test_df <- tibble::tibble(
 datetime = c(test_date, NA),
 date = c(as.Date("2017-01-01"), NA)
)

ar <- Table$create(test_df)

ar %>% mutate(yr_d = year(date))
#> Error: NotImplemented: Function year has no kernel matching input types 
(array[date32[day]])
ar %>% mutate(mo_d = month(date))
#> Error: NotImplemented: Function month has no kernel matching input types 
(array[date32[day]])

ar_date <- Array$create(as.Date("2017-01-01"))

call_function("year", ar_date)
#> Error: NotImplemented: Function year has no kernel matching input types 
(array[date32[day]])
call_function("month", ar_date)
#> Error: NotImplemented: Function month has no kernel matching input types 
(array[date32[day]])
```

<sup>Created on 2021-10-05 by the [reprex 
package](https://reprex.tidyverse.org) (v2.0.1)</sup>

<details style="margin-bottom:10px;">
<summary>
Session info
</summary>

``` r
sessionInfo()
#> R version 4.0.5 (2021-03-31)
#> Platform: x86_64-w64-mingw32/x64 (64-bit)
#> Running under: Windows 10 x64 (build 18363)
#> 
#> Matrix products: default
#> 
#> locale:
#> [1] LC_COLLATE=English_United States.1252 
#> [2] LC_CTYPE=English_United States.1252 
#> [3] LC_MONETARY=English_United States.1252
#> [4] LC_NUMERIC=C 
#> [5] LC_TIME=English_United States.1252 
#> 
#> attached base packages:
#> [1] stats graphics grDevices utils datasets methods base 
#> 
#> other attached packages:
#> [1] lubridate_1.7.10 dplyr_1.0.7 arrow_5.0.0.2 
#> 
#> loaded via a namespace (and not attached):
#> [1] Rcpp_1.0.7 compiler_4.0.5 pillar_1.6.3 highr_0.9 
#> [5] tools_4.0.5 digest_0.6.28 bit_4.0.4 evaluate_0.14 
#> [9] lifecycle_1.0.1 tibble_3.1.5 pkgconfig_2.0.3 rlang_0.4.11 
#> [13] reprex_2.0.1 cli_3.0.1 DBI_1.1.1 rstudioapi_0.13 
#> [17] yaml_2.2.1 xfun_0.26 fastmap_1.1.0 withr_2.4.2 
#> [21] stringr_1.4.0 knitr_1.36 generics_0.1.0 fs_1.5.0 
#> [25] vctrs_0.3.8 bit64_4.0.5 tidyselect_1.1.1 glue_1.4.2 
#> [29] R6_2.5.1 fansi_0.5.0 rmarkdown_2.11 purrr_0.3.4 
#> [33] magrittr_2.0.1 htmltools_0.5.2 ellipsis_0.3.2 assertthat_0.2.1
#> [37] utf8_1.2.2 stringi_1.7.4 crayon_1.4.1
```

</details>

> [R] bindings for lubridate's year, isoyear, quarter, month, day, wday, yday, 
> isoweek, hour, minute, and second functions
> ------------------------------------------------------------------------------------------------------------------------
>
>                 Key: ARROW-13022
>                 URL: https://issues.apache.org/jira/browse/ARROW-13022
>             Project: Apache Arrow
>          Issue Type: Improvement
>          Components: R
>            Reporter: Nicola Crane
>            Assignee: Nicola Crane
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 5.0.0
>
>          Time Spent: 6h 10m
>  Remaining Estimate: 0h
>




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

Reply via email to