#27685
{
    auto block = inputs.front().getHeader().cloneWithColumns(chunk.detachColumns());
    if (for_totals)
        join->setTotals(block);
    else
        stop_reading = !join->addJoinedBlock(block);
    set_totals = for_totals;
}
}