mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-17 21:24:28 +00:00
20 lines
261 B
C++
20 lines
261 B
C++
#pragma once
|
|
|
|
#include <Parsers/IAST.h>
|
|
|
|
namespace DB
|
|
{
|
|
|
|
/// It converts if-chain to multiIf.
|
|
class OptimizeIfChainsVisitor
|
|
{
|
|
public:
|
|
OptimizeIfChainsVisitor() = default;
|
|
void visit(ASTPtr & ast);
|
|
|
|
private:
|
|
ASTs ifChain(const ASTPtr & child);
|
|
};
|
|
|
|
}
|