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

Function collect

src/DataTypes/NestedUtils.cpp:145–158  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

143}
144
145NamesAndTypesList collect(const NamesAndTypesList & names_and_types)
146{
147 NamesAndTypesList res;
148 auto nested_types = getSubcolumnsOfNested(names_and_types);
149
150 for (const auto & name_type : names_and_types)
151 if (!isArray(name_type.type) || !nested_types.count(splitName(name_type.name).first))
152 res.push_back(name_type);
153
154 for (const auto & name_type : nested_types)
155 res.emplace_back(name_type.first, name_type.second);
156
157 return res;
158}
159
160NamesAndTypesList convertToSubcolumns(const NamesAndTypesList & names_and_types)
161{

Callers 15

GenerateSourceClass · 0.85
reclusterPartitionMethod · 0.85
IMergeTreeReaderMethod · 0.85
writeTraceInfoFunction · 0.85
allocImplMethod · 0.85
freeMethod · 0.85
orcColumnsToCHChunkMethod · 0.85
arrowColumnsToCHChunkMethod · 0.85
collectMethod · 0.85
checkMethod · 0.85
checkRuntimeFilterIdMethod · 0.85
visitFilterStepMethod · 0.85

Calls 6

getSubcolumnsOfNestedFunction · 0.85
isArrayFunction · 0.85
splitNameFunction · 0.85
countMethod · 0.45
push_backMethod · 0.45
emplace_backMethod · 0.45

Tested by 1

GTEST_TESTFunction · 0.68