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

Function reorderColumns

src/DataStreams/TTLBlockInputStream.cpp:113–120  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

111}
112
113Block reorderColumns(Block block, const Block & header)
114{
115 Block res;
116 for (const auto & col : header)
117 res.insert(block.getByName(col.name));
118
119 return res;
120}
121
122Block TTLBlockInputStream::readImpl()
123{

Callers 2

readImplMethod · 0.85
performMethod · 0.85

Calls 2

getByNameMethod · 0.80
insertMethod · 0.45

Tested by

no test coverage detected