rok commented on code in PR #12657:
URL: https://github.com/apache/arrow/pull/12657#discussion_r874924960
##########
cpp/src/arrow/compute/api_scalar.h:
##########
@@ -117,6 +119,20 @@ class ARROW_EXPORT RoundTemporalOptions : public
FunctionOptions {
CalendarUnit unit;
/// What day does the week start with (Monday=true, Sunday=false)
bool week_starts_monday;
+ /// Enable this flag to return a rounded value that is strictly greater than
the input.
+ /// For example: ceiling 1970-01-01T00:00:00 to 3 hours would yield
1970-01-01T03:00:00
+ /// if set to true and 1970-01-01T00:00:00 if set to false.
+ /// This applies for ceiling only.
+ bool ceil_is_strictly_greater;
+ /// By default time is rounded to a multiple of units since
1970-01-01T00:00:00.
+ /// By setting multiple_since_greater_unit to true, time will be rounded to
a number
+ /// of units since the last greater calendar unit.
+ /// For example: rounding to a multiple of days since the beginning of the
month or
+ /// to hours since the beginning of the day.
+ /// Exceptions: week and quarter are not used as greater units, therefore
days will
+ /// will be rounded to the beginning of the month not week. Greater unit of
week
+ /// is year.
+ bool multiple_since_greater_unit;
Review Comment:
Switched :)
--
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]