thinkharderdev commented on code in PR #5800:
URL: https://github.com/apache/arrow-datafusion/pull/5800#discussion_r1154681427
##########
datafusion/core/src/physical_plan/file_format/file_stream.rs:
##########
@@ -83,6 +83,11 @@ pub struct FileStream<F: FileOpener> {
baseline_metrics: BaselineMetrics,
}
+enum NextOpen {
+ Future(FileOpenFuture),
+ Reader(Result<BoxStream<'static, Result<RecordBatch, ArrowError>>>),
+}
Review Comment:
```suggestion
/// Represents the state of the next `FileOpenFuture`. Since we need to poll
/// this future while scanning the current file, we need to store the result
if it
/// is ready
enum NextOpen {
Pending(FileOpenFuture),
Ready(Result<BoxStream<'static, Result<RecordBatch, ArrowError>>>),
}
```
--
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]