#include #include #include #include namespace DB { using FunctionToHour = FunctionDateOrDateTimeToSomething; REGISTER_FUNCTION(ToHour) { factory.registerFunction(); /// MysQL compatibility alias. factory.registerAlias("HOUR", "toHour", FunctionFactory::CaseInsensitive); } }