#include #include #include #include namespace DB { struct NameHasTokenCaseInsensitive { static constexpr auto name = "hasTokenCaseInsensitive"; }; struct NameHasTokenCaseInsensitiveOrNull { static constexpr auto name = "hasTokenCaseInsensitiveOrNull"; }; using FunctionHasTokenCaseInsensitive = FunctionsStringSearch>; using FunctionHasTokenCaseInsensitiveOrNull = FunctionsStringSearch, ExecutionErrorPolicy::Null>; REGISTER_FUNCTION(HasTokenCaseInsensitive) { factory.registerFunction( FunctionDocumentation{.description="Performs case insensitive lookup of needle in haystack using tokenbf_v1 index."}, DB::FunctionFactory::CaseInsensitive); factory.registerFunction( FunctionDocumentation{.description="Performs case insensitive lookup of needle in haystack using tokenbf_v1 index. Returns null if needle is ill-formed."}, DB::FunctionFactory::CaseInsensitive); } }