Added comment.

This commit is contained in:
Nikolai Kochetov 2020-02-21 22:17:09 +03:00
parent 23c5c6f874
commit fddb021951

View File

@ -98,6 +98,8 @@ Block ConvertingBlockInputStream::readImpl()
return src;
Block res = header.cloneEmpty();
/// This is important because header.cloneEmpty() doesn't copy info about aggregation bucket.
/// Otherwise information in buckets may be lost (and aggregation will return wrong result).
res.info = src.info;
for (size_t res_pos = 0, size = conversion.size(); res_pos < size; ++res_pos)