From 7493a1750c944d474d81a8ed52a52bfb355d5425 Mon Sep 17 00:00:00 2001 From: Nic Crane Date: Wed, 10 Aug 2022 09:21:06 +0100 Subject: [PATCH 1/2] Comment out as.factor for now --- r/R/expression.R | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/r/R/expression.R b/r/R/expression.R index 6b9eb5e89c5..539ff90e496 100644 --- a/r/R/expression.R +++ b/r/R/expression.R @@ -75,10 +75,12 @@ "lubridate::mday" = "day", "lubridate::yday" = "day_of_year", "lubridate::year" = "year", - "lubridate::leap_year" = "is_leap_year", + "lubridate::leap_year" = "is_leap_year" # type conversion functions - "base::as.factor" = "dictionary_encode" + + # ARROW-12632: ExecuteScalarExpression cannot Execute non-scalar expression + # "base::as.factor" = "dictionary_encode" ) .binary_function_map <- list( From 006b2b0c601623495517017ed842f673d58d859f Mon Sep 17 00:00:00 2001 From: Nic Crane Date: Wed, 10 Aug 2022 09:23:52 +0100 Subject: [PATCH 2/2] Delete commented out code --- r/R/expression.R | 4 ---- 1 file changed, 4 deletions(-) diff --git a/r/R/expression.R b/r/R/expression.R index 539ff90e496..09a8ea24608 100644 --- a/r/R/expression.R +++ b/r/R/expression.R @@ -77,10 +77,6 @@ "lubridate::year" = "year", "lubridate::leap_year" = "is_leap_year" - # type conversion functions - - # ARROW-12632: ExecuteScalarExpression cannot Execute non-scalar expression - # "base::as.factor" = "dictionary_encode" ) .binary_function_map <- list(