In TiFlash there is a setting named max_block_size, which means the max number of rows for each block, so the block returned by InputStream should obey this constraint.
Currently, most of the InputStream obeys this constraint except for aggregation and join, the size of block returned by aggregation and join is un-limited, should find a way to fix this.