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

Method executeDumpWorkloadImpl

src/Interpreters/InterpreterDumpQuery.cpp:186–198  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

184}
185
186void InterpreterDumpQuery::executeDumpWorkloadImpl()
187{
188 // obtain query logs
189 String query_log_scan = prepareQueryLogSQL();
190 LOG_DEBUG(log, "querying query_log with: {}", query_log_scan);
191 BlockIO query_log_res = executeQuery(query_log_scan, Context::createCopy(getContext()), /*internal=*/true);
192 BlockInputStreamPtr query_log_block_stream = query_log_res.getInputStream();
193
194 while (Block block = query_log_block_stream->read())
195 {
196 processQueryLogBlock(block);
197 }
198}
199
200void InterpreterDumpQuery::processQueryLogBlock(const Block & block)
201{

Callers

nothing calls this directly

Calls 3

getInputStreamMethod · 0.80
executeQueryFunction · 0.70
readMethod · 0.45

Tested by

no test coverage detected