| 66 | using WeekState = OptionsWrapper<WeekOptions>; |
| 67 | |
| 68 | Status CheckTimezones(const ExecSpan& batch) { |
| 69 | const auto& timezone = GetInputTimezone(*batch[0].type()); |
| 70 | for (int i = 1; i < batch.num_values(); i++) { |
| 71 | const auto& other_timezone = GetInputTimezone(*batch[i].type()); |
| 72 | if (other_timezone != timezone) { |
| 73 | return Status::TypeError("Got differing time zone '", other_timezone, |
| 74 | "' for argument ", i + 1, "; expected '", timezone, "'"); |
| 75 | } |
| 76 | } |
| 77 | return Status::OK(); |
| 78 | } |
| 79 | |
| 80 | template <template <typename...> class Op, typename Duration, typename InType, |
| 81 | typename OutType> |
no test coverage detected