mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-30 19:42:00 +00:00
4930683aa8
This reverts commit 2958c5f0f1
.
42 lines
1.0 KiB
C++
42 lines
1.0 KiB
C++
#pragma once
|
|
|
|
#include <Parsers/IAST.h>
|
|
|
|
|
|
namespace DB
|
|
{
|
|
|
|
/** Something like t.*
|
|
* It will have qualifier as its child ASTIdentifier.
|
|
* Optional transformers can be attached to further manipulate these expanded columns.
|
|
*/
|
|
class ASTQualifiedAsterisk : public IAST
|
|
{
|
|
public:
|
|
String getID(char) const override { return "QualifiedAsterisk"; }
|
|
ASTPtr clone() const override
|
|
{
|
|
auto clone = std::make_shared<ASTQualifiedAsterisk>(*this);
|
|
clone->children.clear();
|
|
|
|
if (transformers)
|
|
{
|
|
clone->transformers = transformers->clone();
|
|
clone->children.push_back(clone->transformers);
|
|
}
|
|
|
|
clone->qualifier = qualifier->clone();
|
|
clone->children.push_back(clone->qualifier);
|
|
|
|
return clone;
|
|
}
|
|
void appendColumnName(WriteBuffer & ostr) const override;
|
|
|
|
ASTPtr qualifier;
|
|
ASTPtr transformers;
|
|
protected:
|
|
void formatImpl(const FormatSettings & settings, FormatState & state, FormatStateStacked frame) const override;
|
|
};
|
|
|
|
}
|