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