1 | #pragma once |
---|---|
2 | |
3 | #include <Parsers/IAST.h> |
4 | |
5 | namespace DB |
6 | { |
7 | |
8 | /// It converts if-chain to multiIf. |
9 | class OptimizeIfChainsVisitor |
10 | { |
11 | public: |
12 | OptimizeIfChainsVisitor() = default; |
13 | void visit(ASTPtr & ast); |
14 | |
15 | private: |
16 | ASTs ifChain(const ASTPtr & child); |
17 | }; |
18 | |
19 | } |
20 |