MCPcopy Create free account
hub / github.com/apache/arrow / ValidateDayOfWeekOptions

Function ValidateDayOfWeekOptions

cpp/src/arrow/compute/kernels/temporal_internal.h:98–105  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

96}
97
98static inline Status ValidateDayOfWeekOptions(const DayOfWeekOptions& options) {
99 if (options.week_start < 1 || 7 < options.week_start) {
100 return Status::Invalid(
101 "week_start must follow ISO convention (Monday=1, Sunday=7). Got week_start=",
102 options.week_start);
103 }
104 return Status::OK();
105}
106
107static inline Result<std::locale> GetLocale(const std::string& locale) {
108 try {

Callers 1

ExecMethod · 0.70

Calls 2

InvalidFunction · 0.50
OKFunction · 0.50

Tested by

no test coverage detected