#include #include #include #include namespace DB { using FunctionToDayOfMonth = FunctionDateOrDateTimeToSomething; REGISTER_FUNCTION(ToDayOfMonth) { factory.registerFunction(); /// MysQL compatibility alias. factory.registerAlias("DAY", "toDayOfMonth", FunctionFactory::CaseInsensitive); factory.registerAlias("DAYOFMONTH", "toDayOfMonth", FunctionFactory::CaseInsensitive); } }