1 | #pragma once |
2 | |
3 | #include <DataTypes/IDataTypeDummy.h> |
4 | |
5 | |
6 | namespace DB |
7 | { |
8 | |
9 | /** The data type corresponding to the set of values in the IN section. |
10 | * Used only as an intermediate when evaluating expressions. |
11 | */ |
12 | class DataTypeSet final : public IDataTypeDummy |
13 | { |
14 | public: |
15 | static constexpr bool is_parametric = true; |
16 | const char * getFamilyName() const override { return "Set" ; } |
17 | TypeIndex getTypeId() const override { return TypeIndex::Set; } |
18 | bool equals(const IDataType & rhs) const override { return typeid(rhs) == typeid(*this); } |
19 | bool isParametric() const override { return true; } |
20 | |
21 | // Used only for debugging, making it DUMPABLE |
22 | Field getDefault() const override { return Tuple(); } |
23 | }; |
24 | |
25 | } |
26 | |
27 | |