#include #include namespace DB { void registerDateTimeToSnowflake(FunctionFactory & factory) { factory.registerFunction("dateTimeToSnowflake", [](ContextPtr){ return std::make_unique( std::make_shared("dateTimeToSnowflake")); }); } void registerDateTime64ToSnowflake(FunctionFactory & factory) { factory.registerFunction("dateTime64ToSnowflake", [](ContextPtr){ return std::make_unique( std::make_shared("dateTime64ToSnowflake")); }); } void registerSnowflakeToDateTime(FunctionFactory & factory) { factory.registerFunction("snowflakeToDateTime", [](ContextPtr){ return std::make_unique( std::make_shared("snowflakeToDateTime")); }); } void registerSnowflakeToDateTime64(FunctionFactory & factory) { factory.registerFunction("snowflakeToDateTime64", [](ContextPtr){ return std::make_unique( std::make_shared("snowflakeToDateTime64")); }); } }