This is an automated email from the ASF dual-hosted git repository. kou pushed a commit to branch maint-10.0.x in repository https://gitbox.apache.org/repos/asf/arrow.git
commit da638b2b0554b8bbc248e2291b729c6c75cd7f24 Author: Dewey Dunnington <de...@fishandwhistle.net> AuthorDate: Thu Nov 10 13:26:29 2022 -0400 ARROW-18285: [R] Fix for failing test after lubridate 1.9 release (#14615) This fixes test failures resulting from an updated lubridate package, whose update removed some functionality that we supported (apparently `lubridate::yq(2021.1)` was a thing). This works in our source because we cast to `string()` before doing any further processing. Authored-by: Dewey Dunnington <de...@fishandwhistle.net> Signed-off-by: Dewey Dunnington <de...@fishandwhistle.net> --- r/tests/testthat/test-dplyr-funcs-datetime.R | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/r/tests/testthat/test-dplyr-funcs-datetime.R b/r/tests/testthat/test-dplyr-funcs-datetime.R index 3ddc9ec3be..005922dee4 100644 --- a/r/tests/testthat/test-dplyr-funcs-datetime.R +++ b/r/tests/testthat/test-dplyr-funcs-datetime.R @@ -2163,12 +2163,12 @@ test_that("ym, my & yq parsers", { my_string = c("05-2022", "02/2022", "03.22", "12//1979", "09.88", NA), Ym_string = c("2022-05", "2022/02", "2022.03", "1979//12", "1988.09", NA), mY_string = c("05-2022", "02/2022", "03.2022", "12//1979", "09.1988", NA), - yq_string = c("2007.3", "1970.2", "2020.1", "2009.4", "1975.1", NA), - yq_numeric = c(2007.3, 1970.2, 2020.1, 2009.4, 1975.1, NA), + yq_string = c("2007.3", "1971.2", "2021.1", "2009.4", "1975.1", NA), + yq_numeric = c(2007.3, 1971.2, 2021.1, 2009.4, 1975.1, NA), yq_space = c("2007 3", "1970 2", "2020 1", "2009 4", "1975 1", NA), - qy_string = c("3.2007", "2.1970", "1.2020", "4.2009", "1.1975", NA), - qy_numeric = c(3.2007, 2.1970, 1.2020, 4.2009, 1.1975, NA), - qy_space = c("3 2007", "2 1970", "1 2020", "4 2009", "1 1975", NA) + qy_string = c("3.2007", "2.1971", "1.2020", "4.2009", "1.1975", NA), + qy_numeric = c(3.2007, 2.1971, 1.2021, 4.2009, 1.1975, NA), + qy_space = c("3 2007", "2 1971", "1 2021", "4 2009", "1 1975", NA) ) # these functions' internals use some string processing which requires the