diff --git a/src/Functions/toCustomWeek.cpp b/src/Functions/toCustomWeek.cpp index 0dbd60b3eff..98e7aaf1d6b 100644 --- a/src/Functions/toCustomWeek.cpp +++ b/src/Functions/toCustomWeek.cpp @@ -17,30 +17,8 @@ REGISTER_FUNCTION(ToCustomWeek) { factory.registerFunction(); factory.registerFunction(); - - factory.registerFunction(FunctionDocumentation{.description=R"( -Rounds a date or date with time down to the nearest Sunday or Monday. Returns the date. -Syntax: toStartOfWeek(t[, mode[, timezone]]) -The mode argument works exactly like the mode argument in function `toWeek()`. If no mode is specified, mode is assumed as 0. - -Example: -[example:typical] -)", - .examples{ - {"typical", "SELECT toStartOfWeek(today(), 1);", ""}}, - .categories{"Dates and Times"}}, FunctionFactory::CaseSensitive); - - factory.registerFunction(FunctionDocumentation{.description=R"( -Rounds a date or date with time up to the nearest Saturday or Sunday. Returns the date. -Syntax: toLastDayOfWeek(t[, mode[, timezone]]) -The mode argument works exactly like the mode argument in function `toWeek()`. If no mode is specified, mode is assumed as 0. - -Example: -[example:typical] -)", - .examples{ - {"typical", "SELECT toLastDayOfWeek(today(), 1);", ""}}, - .categories{"Dates and Times"}}, FunctionFactory::CaseSensitive); + factory.registerFunction(); + factory.registerFunction(); /// Compatibility aliases for mysql. factory.registerAlias("week", "toWeek", FunctionFactory::CaseInsensitive); diff --git a/tests/queries/0_stateless/02415_all_new_functions_must_be_documented.reference b/tests/queries/0_stateless/02415_all_new_functions_must_be_documented.reference index eae36604845..bf43288fe1d 100644 --- a/tests/queries/0_stateless/02415_all_new_functions_must_be_documented.reference +++ b/tests/queries/0_stateless/02415_all_new_functions_must_be_documented.reference @@ -784,6 +784,7 @@ toIntervalWeek toIntervalYear toJSONString toLastDayOfMonth +toLastDayOfWeek toLowCardinality toMinute toModifiedJulianDay @@ -815,6 +816,7 @@ toStartOfNanosecond toStartOfQuarter toStartOfSecond toStartOfTenMinutes +toStartOfWeek toStartOfYear toString toStringCutToZero