rok commented on code in PR #12657:
URL: https://github.com/apache/arrow/pull/12657#discussion_r855172268
##########
cpp/src/arrow/compute/kernels/scalar_temporal_unary.cc:
##########
@@ -705,21 +721,75 @@ year_month_day GetFlooredYmd(int64_t arg, int multiple,
Localizer localizer_) {
} else {
total_months = (total_months - multiple + 1) / multiple * multiple;
}
- return year_month_day(year{1970} / jan / 0) + months{total_months};
+ return year{1970} / jan / 1 + months{total_months};
}
}
template <typename Duration, typename Unit, typename Localizer>
-const Duration FloorTimePoint(const int64_t arg, const int64_t multiple,
+const Duration FloorTimePoint(const int64_t arg, const RoundTemporalOptions
options,
Review Comment:
Done.
--
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]