ClickHouse/dbms/Interpreters/OptimizeIfChains.h
Ivan 97f2a2213e
Move all folders inside /dbms one level up (#9974)
* Move some code outside dbms/src folder
* Fix paths
2020-04-02 02:51:21 +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);
};
}