#include #include #include #include namespace DB { using FunctionToMonth = FunctionDateOrDateTimeToSomething; REGISTER_FUNCTION(ToMonth) { factory.registerFunction(); /// MySQL compatibility alias. factory.registerAlias("MONTH", "toMonth", FunctionFactory::CaseInsensitive); } }