You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by "thinkharderdev (via GitHub)" <gi...@apache.org> on 2023/02/06 11:04:57 UTC

[GitHub] [arrow-datafusion] thinkharderdev commented on a diff in pull request #5161: FileStream: Open next file in parallel while decoding

thinkharderdev commented on code in PR #5161:
URL: https://github.com/apache/arrow-datafusion/pull/5161#discussion_r1097237235


##########
datafusion/core/src/physical_plan/file_format/file_stream.rs:
##########
@@ -98,6 +99,8 @@ enum FileStreamState {
         partition_values: Vec<ScalarValue>,
         /// The reader instance
         reader: BoxStream<'static, Result<RecordBatch, ArrowError>>,
+        /// A [`FileOpenFuture`] for the next file to be processed
+        next: Option<(FileOpenFuture, Vec<ScalarValue>)>,

Review Comment:
   yeah, that seems like a good idea



-- 
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: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org