#include #include #include #include namespace DB { using FunctionToYear = FunctionDateOrDateTimeToSomething; void registerFunctionToYear(FunctionFactory & factory) { factory.registerFunction(); /// MysQL compatibility alias. factory.registerFunction("YEAR", FunctionFactory::CaseInsensitive); } }