MCPcopy Create free account
hub / github.com/ClickHouse/ClickHouse / getType

Method getType

src/DataTypes/DataTypesCache.cpp:62–69  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

60}
61
62DataTypePtr SimpleDataTypesCache::getType(BinaryTypeIndex index) const
63{
64 uint8_t index_value = static_cast<uint8_t>(index);
65 if (index_value >= by_index.size() || by_index[index_value].type == nullptr)
66 throw Exception(ErrorCodes::LOGICAL_ERROR, "Invalid binary type index: {}", index);
67
68 return by_index[index_value].type;
69}
70
71SerializationPtr SimpleDataTypesCache::getSerialization(BinaryTypeIndex index) const
72{

Callers 15

visitDictionaryDefFunction · 0.45
checkTableEngineMethod · 0.45
createFunction · 0.45
decodeDataTypeFunction · 0.45
createFunction · 0.45
getArgumentFunction · 0.45
castToNameMethod · 0.45

Calls 4

ExceptionClass · 0.50
sizeMethod · 0.45
getMethod · 0.45
findByNameMethod · 0.45

Tested by 1

TESTFunction · 0.36