ClickHouse/src/DataTypes/DataTypeUUID.h

28 lines
704 B
C++
Raw Normal View History

#pragma once
#include <DataTypes/DataTypeNumberBase.h>
#include <DataTypes/IDataType.h>
namespace DB
{
class DataTypeUUID final : public DataTypeNumberBase<UInt128>
{
public:
const char * getFamilyName() const override { return "UUID"; }
TypeIndex getTypeId() const override { return TypeIndex::UUID; }
bool equals(const IDataType & rhs) const override;
bool canBeUsedInBitOperations() const override { return true; }
bool canBeInsideNullable() const override { return true; }
2021-03-09 14:10:28 +00:00
bool canBeInsideLowCardinality() const override { return false; }
2020-06-14 04:35:50 +00:00
bool canBePromoted() const override { return false; }
2021-03-09 14:10:28 +00:00
SerializationPtr doGetDefaultSerialization() const override;
};
}