mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-25 09:02:00 +00:00
23 lines
438 B
C++
23 lines
438 B
C++
#pragma once
|
|
|
|
#include <Interpreters/InDepthNodeVisitor.h>
|
|
#include <Parsers/IAST_fwd.h>
|
|
|
|
namespace DB
|
|
{
|
|
|
|
class ASTFunction;
|
|
|
|
/// Replaces all the "or"'s with {i}like to multiMatchAny
|
|
class ConvertFunctionOrLikeData
|
|
{
|
|
public:
|
|
using TypeToVisit = ASTFunction;
|
|
|
|
static void visit(ASTFunction & function, ASTPtr & ast);
|
|
};
|
|
|
|
using ConvertFunctionOrLikeVisitor = InDepthNodeVisitor<OneTypeMatcher<ConvertFunctionOrLikeData>, true>;
|
|
|
|
}
|