mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-29 02:52:13 +00:00
26 lines
465 B
C++
26 lines
465 B
C++
#pragma once
|
|
|
|
#include <Parsers/IAST.h>
|
|
|
|
|
|
namespace DB
|
|
{
|
|
/** subquery in with statement
|
|
*/
|
|
class ASTWithElement : public IAST
|
|
{
|
|
public:
|
|
String name;
|
|
ASTPtr subquery;
|
|
|
|
/** Get the text that identifies this element. */
|
|
String getID(char) const override { return "WithElement"; }
|
|
|
|
ASTPtr clone() const override;
|
|
|
|
protected:
|
|
void formatImpl(const FormatSettings & settings, FormatState & state, FormatStateStacked frame) const override;
|
|
};
|
|
|
|
}
|