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

Function originalRightBlock

src/Interpreters/DirectJoin.cpp:18–24  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

16}
17
18static Block originalRightBlock(const Block & block, const TableJoin & table_join)
19{
20 Block original_right_block;
21 for (const auto & col : block)
22 original_right_block.insert({col.column, col.type, table_join.getOriginalName(col.name)});
23 return original_right_block;
24}
25
26/// Converts `columns` from `source_sample_block` structure to `result_sample_block`.
27/// Can select subset of columns and change types.

Callers 1

joinBlockMethod · 0.85

Calls 2

getOriginalNameMethod · 0.80
insertMethod · 0.45

Tested by

no test coverage detected