#include #include namespace DB { Block MergingAggregatedBlockInputStream::readImpl() { if (has_been_read) return Block(); has_been_read = true; AggregatedDataVariants data_variants; aggregator->merge(children.back(), data_variants); return aggregator->convertToBlock(data_variants, final); } }