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