ozankabak commented on code in PR #16398:
URL: https://github.com/apache/datafusion/pull/16398#discussion_r2152472886
##########
datafusion/datasource/src/source.rs:
##########
@@ -261,11 +261,7 @@ impl ExecutionPlan for DataSourceExec {
) -> Result<SendableRecordBatchStream> {
self.data_source
.open(partition, Arc::clone(&context))
- .map(|stream| wrap_yield_stream(stream, &context,
self.cooperative))
- }
-
- fn with_cooperative_yields(self: Arc<Self>) -> Option<Arc<dyn
ExecutionPlan>> {
- self.cooperative.then_some(self)
+ .map(|stream| make_cooperative(stream))
Review Comment:
I don't think it is critical performance-wise, but now I wonder if we should
make any additions to the `DataSource` trait to signal built-in cooperative
behavior to `DataSourceExec`?
--
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]