mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-23 08:02:02 +00:00
+ minimal in-source docs
This commit is contained in:
parent
d0ad2fee5c
commit
70c95c7410
@ -736,10 +736,43 @@ REGISTER_FUNCTION(MakeDate)
|
||||
factory.registerFunction<FunctionMakeDateTime>();
|
||||
factory.registerFunction<FunctionMakeDateTime64>();
|
||||
|
||||
factory.registerFunction<FunctionYYYYYMMDDToDate<DateTraits>>();
|
||||
factory.registerFunction<FunctionYYYYYMMDDToDate<Date32Traits>>();
|
||||
factory.registerFunction<FunctionYYYYMMDDhhmmssToDateTime>();
|
||||
factory.registerFunction<FunctionYYYYMMDDhhmmssToDateTime64>();
|
||||
factory.registerFunction<FunctionYYYYYMMDDToDate<DateTraits>>(
|
||||
FunctionDocumentation{
|
||||
.description = R"(
|
||||
Converts a number containing the year, month and day number to a Date.
|
||||
This functions is the opposite of function `toYYYYMMDD()`.
|
||||
The output is undefined if the input does not encode a valid Date value.
|
||||
)",
|
||||
.categories{"Dates and Times"}
|
||||
}
|
||||
);
|
||||
factory.registerFunction<FunctionYYYYYMMDDToDate<Date32Traits>>(
|
||||
FunctionDocumentation{
|
||||
.description = R"(
|
||||
Like function `YYYYMMDDToDate()` but produces a Date32.
|
||||
)",
|
||||
.categories{"Dates and Times"}
|
||||
}
|
||||
);
|
||||
factory.registerFunction<FunctionYYYYMMDDhhmmssToDateTime>(
|
||||
FunctionDocumentation{
|
||||
.description = R"(
|
||||
Converts a number containing the year, month and day number to a DateTime.
|
||||
The output is undefined if the input does not encode a valid DateTime value.
|
||||
This functions is the opposite of function `toYYYYMMDD()`.
|
||||
)",
|
||||
.categories{"Dates and Times"}
|
||||
}
|
||||
);
|
||||
factory.registerFunction<FunctionYYYYMMDDhhmmssToDateTime64>(
|
||||
FunctionDocumentation{
|
||||
.description = R"(
|
||||
Like function `YYYYMMDDhhmmssToDate()` but produces a DateTime64.
|
||||
Accepts an additional, optional `precision` parameter after the `timezone` parameter.
|
||||
)",
|
||||
.categories{"Dates and Times"}
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -56,10 +56,6 @@ URLHierarchy
|
||||
URLPathHierarchy
|
||||
UUIDNumToString
|
||||
UUIDStringToNum
|
||||
YYYYMMDDToDate
|
||||
YYYYMMDDToDate32
|
||||
YYYYMMDDhhmmssToDateTime
|
||||
YYYYMMDDhhmmssToDateTime64
|
||||
_CAST
|
||||
__bitBoolMaskAnd
|
||||
__bitBoolMaskOr
|
||||
|
Loading…
Reference in New Issue
Block a user