MCPcopy Create free account
hub / github.com/ByConity/ByConity / checkValidity

Method checkValidity

src/DataTypes/DataTypeMap.cpp:83–92  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

81}
82
83void DataTypeMap::checkValidity() const
84{
85 if (isMapKVStore() && isMapByteStore())
86 throw Exception(ErrorCodes::BAD_ARGUMENTS, "Map KV flag and BYTE flag cannot be set at the same time.");
87 if (isByteMap())
88 {
89 if (!value_type->canBeByteMapValueType())
90 throw Exception(ErrorCodes::BAD_ARGUMENTS, "Map Value Type {} is not compatible", value_type->getName());
91 }
92}
93
94std::string DataTypeMap::doGetName() const
95{

Callers 1

checkColumnsValidityMethod · 0.80

Calls 3

ExceptionClass · 0.50
canBeByteMapValueTypeMethod · 0.45
getNameMethod · 0.45

Tested by

no test coverage detected