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

Function tryGetFlattenableTuple

src/DataTypes/NestedUtils.cpp:282–288  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

280}
281
282const DataTypeTuple * tryGetFlattenableTuple(const DataTypePtr & type)
283{
284 const auto * tuple_type = typeid_cast<const DataTypeTuple *>(type.get());
285 if (tuple_type && !tuple_type->getElements().empty() && !type->hasCustomName())
286 return tuple_type;
287 return nullptr;
288}
289
290/// Recursively flattens one (column, type) into its leaf columns, calling
291/// `emit_leaf(column, type, name, ancestors)` once per leaf. A leaf is anything

Calls 4

hasCustomNameMethod · 0.80
getMethod · 0.45
emptyMethod · 0.45
getElementsMethod · 0.45

Tested by

no test coverage detected