aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/clickhouse/src/Analyzer/Passes/ConvertOrLikeChainPass.h
blob: 0f734bfa73dd70c79906caa40252c7430255f57b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#pragma once

#include <Analyzer/IQueryTreePass.h>

namespace DB
{

/** Replaces all the "or"'s with {i}like to multiMatchAny
 */
class ConvertOrLikeChainPass final : public IQueryTreePass
{
public:
    String getName() override { return "ConvertOrLikeChain"; }

    String getDescription() override { return "Replaces all the 'or's with {i}like to multiMatchAny"; }

    void run(QueryTreeNodePtr query_tree_node, ContextPtr context) override;
};

}