mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-22 23:52:03 +00:00
Deprive toStartOfWeek and toLastDayOfWeek functions of in-source documentation
This commit is contained in:
parent
0ad5b9f598
commit
6c94632d47
@ -17,30 +17,8 @@ REGISTER_FUNCTION(ToCustomWeek)
|
||||
{
|
||||
factory.registerFunction<FunctionToWeek>();
|
||||
factory.registerFunction<FunctionToYearWeek>();
|
||||
|
||||
factory.registerFunction<FunctionToStartOfWeek>(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<FunctionToLastDayOfWeek>(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<FunctionToStartOfWeek>();
|
||||
factory.registerFunction<FunctionToLastDayOfWeek>();
|
||||
|
||||
/// Compatibility aliases for mysql.
|
||||
factory.registerAlias("week", "toWeek", FunctionFactory::CaseInsensitive);
|
||||
|
@ -784,6 +784,7 @@ toIntervalWeek
|
||||
toIntervalYear
|
||||
toJSONString
|
||||
toLastDayOfMonth
|
||||
toLastDayOfWeek
|
||||
toLowCardinality
|
||||
toMinute
|
||||
toModifiedJulianDay
|
||||
@ -815,6 +816,7 @@ toStartOfNanosecond
|
||||
toStartOfQuarter
|
||||
toStartOfSecond
|
||||
toStartOfTenMinutes
|
||||
toStartOfWeek
|
||||
toStartOfYear
|
||||
toString
|
||||
toStringCutToZero
|
||||
|
Loading…
Reference in New Issue
Block a user