diff --git a/src/Interpreters/GlobalSubqueriesVisitor.h b/src/Interpreters/GlobalSubqueriesVisitor.h index 6b76f5b2822..cde59d1e6c9 100644 --- a/src/Interpreters/GlobalSubqueriesVisitor.h +++ b/src/Interpreters/GlobalSubqueriesVisitor.h @@ -146,7 +146,7 @@ public: table_out->writePrefix(); Block block; - while (!executor.pull(block)) + while (executor.pull(block)) table_out->write(block); table_out->writeSuffix();