MCPcopy Create free account
hub / github.com/bytedance/bolt / checkTypeEncoding

Function checkTypeEncoding

bolt/serializers/PrestoSerializer.cpp:1095–1103  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1093}
1094
1095void checkTypeEncoding(std::string_view encoding, const TypePtr& type) {
1096 const auto kindEncoding = typeToEncodingName(type);
1097 BOLT_USER_CHECK(
1098 encoding == kindEncoding,
1099 "Serialized encoding is not compatible with requested type: {}. Expected {}. Got {}.",
1100 type->kindName(),
1101 kindEncoding,
1102 encoding);
1103}
1104
1105void readColumns(
1106 ByteInputStream* source,

Callers 1

readColumnsFunction · 0.85

Calls 2

typeToEncodingNameFunction · 0.70
kindNameMethod · 0.45

Tested by

no test coverage detected