fn resolve_stream_rows( reader: Option<Reader>, stream_rows: Option<u32>, total_rows: u32, ) -> u32
Determine stream row count based on reader type.