#include #include #include #include #include #include namespace DB { void formatBlock(OutputFormatPtr out, const Block & block) { auto source = std::make_shared(block); QueryPipeline pipeline(source); pipeline.complete(out); CompletedPipelineExecutor executor(pipeline); executor.execute(); out->flush(); } }