MCPcopy Create free account
hub / github.com/apache/impala / DebugString

Method DebugString

be/src/runtime/types.cc:260–275  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

258}
259
260string ColumnType::DebugString() const {
261 switch (type) {
262 case TYPE_STRING:
263 return is_binary_ ? "BINARY" : "STRING";
264 case TYPE_CHAR:
265 return Substitute("CHAR($0)", len);
266 case TYPE_DECIMAL:
267 return Substitute("DECIMAL($0,$1)", precision, scale);
268 case TYPE_VARCHAR:
269 return Substitute("VARCHAR($0)", len);
270 case TYPE_FIXED_UDA_INTERMEDIATE:
271 return Substitute("FIXED_UDA_INTERMEDIATE($0)", len);
272 default:
273 return TypeToString(type);
274 }
275}
276
277vector<ColumnType> ColumnType::FromThrift(const vector<TColumnType>& ttypes) {
278 vector<ColumnType> types;

Callers 15

types.ccFile · 0.45
InitMethod · 0.45
WriteValueMethod · 0.45
PrintValueAsBytesMethod · 0.45
WriteNonNullPrimitiveMethod · 0.45
RegisterScanMethod · 0.45
ReturnMethod · 0.45
StartFInstancesMethod · 0.45
PrepareMethod · 0.45
AcquireStateMethod · 0.45
TEST_FFunction · 0.45
TestShortDebugStringMethod · 0.45

Calls 2

SubstituteFunction · 0.85
TypeToStringFunction · 0.70

Tested by 3

WriteValueMethod · 0.36
TEST_FFunction · 0.36
TestShortDebugStringMethod · 0.36