adriangb commented on code in PR #19362:
URL: https://github.com/apache/datafusion/pull/19362#discussion_r2629432470
##########
datafusion/physical-plan/src/memory.rs:
##########
@@ -144,6 +144,9 @@ pub trait LazyBatchGenerator: Send + Sync + fmt::Debug +
fmt::Display {
/// Generate the next batch, return `None` when no more batches are
available
fn generate_next_batch(&mut self) -> Result<Option<RecordBatch>>;
+
+ /// Returns a new instance with the state reset.
+ fn reset_state(&self) -> Arc<RwLock<dyn LazyBatchGenerator>>;
Review Comment:
Since we want these to end up as `Arc<RwLock<dyn LazyBatchGenerator>>` this
seems good to me.
--
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]