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