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