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