ClickHouse/src/Interpreters/OptimizeIfChains.h
2020-04-03 18:14:31 +03:00

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);
};
}