rok commented on a change in pull request #10647:
URL: https://github.com/apache/arrow/pull/10647#discussion_r676662216
##########
File path: r/src/compute.cpp
##########
@@ -288,6 +288,19 @@ std::shared_ptr<arrow::compute::FunctionOptions>
make_compute_options(
cpp11::as_cpp<arrow::TimeUnit::type>(options["unit"]));
}
+ if (func_name == "strftime") {
+ using Options = arrow::compute::StrftimeOptions;
+ std::string format = "%Y-%m-%dT%H:%M:%SZ";
+ std::string locale = "C";
+ if (!Rf_isNull(options["format"])) {
+ format = cpp11::as_cpp<std::string>(options["format"]);
+ }
+ if (!Rf_isNull(options["locale"])) {
+ locale = cpp11::as_cpp<std::string>(options["locale"]);
+ }
+ return std::make_shared<Options>(Options(format, locale));
+ }
+
Review comment:
Removed and added a comment to ARROW-13448.
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]