mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-14 02:12:21 +00:00
b4c933e585
fix test
38 lines
715 B
C++
38 lines
715 B
C++
#pragma once
|
|
|
|
#include <Parsers/ASTQueryWithOutput.h>
|
|
|
|
|
|
namespace DB
|
|
{
|
|
/** Single SELECT query or multiple SELECT queries with UNION
|
|
* or UNION or UNION DISTINCT
|
|
*/
|
|
class ASTSelectWithUnionQuery : public ASTQueryWithOutput
|
|
{
|
|
public:
|
|
String getID(char) const override { return "SelectWithUnionQuery"; }
|
|
|
|
ASTPtr clone() const override;
|
|
void formatQueryImpl(const FormatSettings & settings, FormatState & state, FormatStateStacked frame) const override;
|
|
|
|
enum class Mode
|
|
{
|
|
Unspecified,
|
|
ALL,
|
|
DISTINCT
|
|
};
|
|
|
|
using UnionModes = std::vector<Mode>;
|
|
|
|
Mode union_mode;
|
|
|
|
UnionModes list_of_modes;
|
|
|
|
bool is_normalized = false;
|
|
|
|
ASTPtr list_of_selects;
|
|
};
|
|
|
|
}
|