#pragma once #include #include namespace DB { class DataTypeDate32 final : public DataTypeNumberBase { public: static constexpr auto family_name = "Date32"; TypeIndex getTypeId() const override { return TypeIndex::Date32; } TypeIndex getColumnType() const override { return TypeIndex::Int32; } const char * getFamilyName() const override { return family_name; } Field getDefault() const override; bool canBeUsedAsVersion() const override { return true; } bool canBeInsideNullable() const override { return true; } bool equals(const IDataType & rhs) const override; protected: SerializationPtr doGetDefaultSerialization() const override; }; }