diff --git a/r/src/array_to_vector.cpp b/r/src/array_to_vector.cpp index 7cf861a5448..f834a88f1b5 100644 --- a/r/src/array_to_vector.cpp +++ b/r/src/array_to_vector.cpp @@ -886,7 +886,7 @@ class Converter_Time : public Converter { } }; -template +template class Converter_Duration : public Converter { public: explicit Converter_Duration(const std::shared_ptr& chunked_array) diff --git a/r/src/arrowExports.cpp b/r/src/arrowExports.cpp index cb0dc5097d4..ab2d55937f5 100644 --- a/r/src/arrowExports.cpp +++ b/r/src/arrowExports.cpp @@ -3020,10 +3020,10 @@ extern "C" SEXP _arrow_TimeType__unit(SEXP type_sexp){ // datatype.cpp #if defined(ARROW_R_WITH_ARROW) -arrow::TimeUnit::type DurationType__unit(const std::shared_ptr& type); +arrow::TimeUnit::type DurationType__unit(const std::shared_ptr& type); extern "C" SEXP _arrow_DurationType__unit(SEXP type_sexp){ BEGIN_CPP11 - arrow::r::Input&>::type type(type_sexp); + arrow::r::Input&>::type type(type_sexp); return cpp11::as_sexp(DurationType__unit(type)); END_CPP11 } diff --git a/r/src/datatype.cpp b/r/src/datatype.cpp index 17e4eafe824..62933cccfcc 100644 --- a/r/src/datatype.cpp +++ b/r/src/datatype.cpp @@ -317,7 +317,8 @@ arrow::TimeUnit::type TimeType__unit(const std::shared_ptr& typ } // [[arrow::export]] -arrow::TimeUnit::type DurationType__unit(const std::shared_ptr& type) { +arrow::TimeUnit::type DurationType__unit( + const std::shared_ptr& type) { return type->unit(); }