MCPcopy Create free account
hub / github.com/ByConity/ByConity / recreateTupleWithElements

Function recreateTupleWithElements

src/DataTypes/ObjectUtils.cpp:142–147  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

140}
141
142static DataTypePtr recreateTupleWithElements(const DataTypeTuple & type_tuple, const DataTypes & elements)
143{
144 return type_tuple.haveExplicitNames()
145 ? std::make_shared<DataTypeTuple>(elements, type_tuple.getElementNames())
146 : std::make_shared<DataTypeTuple>(elements);
147}
148
149static std::pair<ColumnPtr, DataTypePtr> convertObjectColumnToTuple(
150 const ColumnObject & column_object, const DataTypeObject & type_object)

Calls 1

haveExplicitNamesMethod · 0.80

Tested by

no test coverage detected