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

Method pushBlock

src/Interpreters/InternalTextLogsQueue.cpp:39–47  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

37}
38
39void InternalTextLogsQueue::pushBlock(Block && log_block)
40{
41 static Block sample_block = getSampleBlock();
42
43 if (blocksHaveEqualStructure(sample_block, log_block))
44 (void)(emplace(log_block.mutateColumns()));
45 else
46 LOG_WARNING(getLogger("InternalTextLogsQueue"), "Log block have different structure");
47}
48
49std::string_view InternalTextLogsQueue::getPriorityName(int priority)
50{

Callers 3

processPacketMethod · 0.80
finishMethod · 0.80
initializeMethod · 0.80

Calls 4

blocksHaveEqualStructureFunction · 0.85
getSampleBlockFunction · 0.70
getLoggerFunction · 0.70
mutateColumnsMethod · 0.45

Tested by

no test coverage detected