Removed useless calls [#CLICKHOUSE-2].

This commit is contained in:
Alexey Milovidov 2017-12-25 03:37:13 +03:00
parent f87cc75734
commit 671b731c90

View File

@ -83,7 +83,6 @@ void CreatingSetsBlockInputStream::createOne(SubqueryForSet & subquery)
if (done_with_set && done_with_join && done_with_table) if (done_with_set && done_with_join && done_with_table)
throw Exception("Logical error: nothing to do with subquery", ErrorCodes::LOGICAL_ERROR); throw Exception("Logical error: nothing to do with subquery", ErrorCodes::LOGICAL_ERROR);
subquery.source->readPrefix();
if (table_out) if (table_out)
table_out->writePrefix(); table_out->writePrefix();
@ -144,7 +143,6 @@ void CreatingSetsBlockInputStream::createOne(SubqueryForSet & subquery)
} }
} }
// subquery.source->readSuffix(); /// TODO Blocked in `RemoteBlockInputStream::readSuffixImpl` when querying `SELECT number FROM system.numbers WHERE number IN (SELECT number FROM remote(`127.0.0.{1,2}', system, numbers) WHERE number % 2 = 1 LIMIT 10) LIMIT 10`
if (table_out) if (table_out)
table_out->writeSuffix(); table_out->writeSuffix();