ClickHouse/src/Parsers/ASTInterpolateElement.h

32 lines
666 B
C++
Raw Normal View History

#pragma once
#include <Parsers/IAST.h>
namespace DB
{
class ASTInterpolateElement : public IAST
{
public:
2022-03-28 23:15:53 +00:00
String column;
ASTPtr expr;
String getID(char delim) const override { return String("InterpolateElement") + delim + "(column " + column + ")"; }
ASTPtr clone() const override
{
auto clone = std::make_shared<ASTInterpolateElement>(*this);
clone->expr = clone->expr->clone();
clone->children.clear();
clone->children.push_back(clone->expr);
return clone;
}
protected:
void formatImpl(const FormatSettings & settings, FormatState & state, FormatStateStacked frame) const override;
};
}