mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-18 05:32:52 +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);
|
|
};
|
|
|
|
}
|