| 184 | } |
| 185 | |
| 186 | void 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 | |
| 200 | void InterpreterDumpQuery::processQueryLogBlock(const Block & block) |
| 201 | { |
nothing calls this directly
no test coverage detected