rok commented on a change in pull request #11818: URL: https://github.com/apache/arrow/pull/11818#discussion_r778289913
########## File path: cpp/src/arrow/compute/api_scalar.h ########## @@ -90,6 +90,36 @@ class ARROW_EXPORT RoundOptions : public FunctionOptions { RoundMode round_mode; }; +enum class CalendarUnit : int8_t { + NANOSECOND, + MICROSECOND, + MILLISECOND, + SECOND, + MINUTE, + HOUR, + DAY, + WEEK, + MONTH, + SEASON, + YEAR +}; + +class ARROW_EXPORT RoundTemporalOptions : public FunctionOptions { + public: + + explicit RoundTemporalOptions(int multiple = 1, CalendarUnit unit = CalendarUnit::DAY, + int origin = 0); + constexpr static char const kTypeName[] = "RoundTemporalOptions"; + static RoundTemporalOptions Defaults() { return RoundTemporalOptions(); } + + /// Number of units to round to + int multiple; + /// The unit used for rounding of time + CalendarUnit unit; + /// Origin time of rounding Review comment: Dropped origin for now. -- 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: github-unsubscr...@arrow.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org