VanshajPoonia opened a new pull request, #12458: URL: https://github.com/apache/arrow-rs/pull/12458
# Which issue does this PR close? - Closes #9320 # Rationale for this change ParquetRecordBatchStream::next_row_group lets a caller fetch row groups and decode them separately but no example shows how. The issue asks for one and it builds on the snippet lyang24 wrote in the issue. # What changes are included in this PR? a new example parquet/examples/read_pipelined.rs with its example entry. One task calls next_row_group and sends each reader through a channel that holds 2. The main task decodes each in spawn_blocking. The file is written to memory first so no test data is needed. It differs from the snippet in three ways. Fetch errors are returned. The fetch task stops when decoding fails. InMemoryReader is replaced by std::io::Cursor<Bytes>. # Are these changes tested? it is an example. cargo run -p parquet --example read_pipelined --features async prints Read 8 batches with 4000 rows. fmt and clippy are clean. I did not run typos or the workspace tests. # Are there any significant user-facing changes? No. # AI usage disclosure AI usage: I used an Claude Code to draft the change. I have read every line manually and ran the checks above. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
