#include #include #include #include #include namespace DB { using FunctionToWeek = FunctionCustomWeekToSomething; using FunctionToYearWeek = FunctionCustomWeekToSomething; using FunctionToStartOfWeek = FunctionCustomWeekToSomething; void registerFunctionToCustomWeek(FunctionFactory & factory) { factory.registerFunction(); factory.registerFunction(); factory.registerFunction(); /// Compatibility aliases for mysql. factory.registerAlias("week", "toWeek", FunctionFactory::CaseInsensitive); factory.registerAlias("yearweek", "toYearWeek", FunctionFactory::CaseInsensitive); } }