| 81 | } |
| 82 | |
| 83 | void 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 | |
| 94 | std::string DataTypeMap::doGetName() const |
| 95 | { |
no test coverage detected