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