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