mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-21 23:21:59 +00:00
Merge pull request #600 from yandex/CLICKHOUSE-2886
Fix Vertical merge in case of OPTIMIZE FINAL with single part.
This commit is contained in:
commit
3bdb1b6bb0
@ -24,6 +24,10 @@ ColumnGathererStream::ColumnGathererStream(const BlockInputStreams & source_stre
|
||||
|
||||
children.assign(source_streams.begin(), source_streams.end());
|
||||
|
||||
/// Trivial case
|
||||
if (children.size() == 1)
|
||||
return;
|
||||
|
||||
sources.reserve(children.size());
|
||||
for (size_t i = 0; i < children.size(); i++)
|
||||
{
|
||||
@ -150,6 +154,9 @@ void ColumnGathererStream::fetchNewBlock(Source & source, size_t source_num)
|
||||
|
||||
void ColumnGathererStream::readSuffixImpl()
|
||||
{
|
||||
if (children.size() == 1)
|
||||
return;
|
||||
|
||||
const BlockStreamProfileInfo & profile_info = getProfileInfo();
|
||||
double seconds = profile_info.total_stopwatch.elapsedSeconds();
|
||||
LOG_DEBUG(log, std::fixed << std::setprecision(2)
|
||||
|
Loading…
Reference in New Issue
Block a user