mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-04 21:42:39 +00:00
30 lines
523 B
C++
30 lines
523 B
C++
|
#pragma once
|
||
|
|
||
|
#include <Parsers/IAST.h>
|
||
|
|
||
|
|
||
|
namespace DB
|
||
|
{
|
||
|
|
||
|
class ASTInterpolateElement : public IAST
|
||
|
{
|
||
|
public:
|
||
|
ASTPtr column;
|
||
|
ASTPtr expr;
|
||
|
|
||
|
String getID(char) const override { return "InterpolateElement"; }
|
||
|
|
||
|
ASTPtr clone() const override
|
||
|
{
|
||
|
auto clone = std::make_shared<ASTInterpolateElement>(*this);
|
||
|
clone->cloneChildren();
|
||
|
return clone;
|
||
|
}
|
||
|
|
||
|
|
||
|
protected:
|
||
|
void formatImpl(const FormatSettings & settings, FormatState & state, FormatStateStacked frame) const override;
|
||
|
};
|
||
|
|
||
|
}
|