(
plan: Arc<dyn ExecutionPlan>,
task_ctx: Arc<TaskContext>,
)
| 820 | } |
| 821 | |
| 822 | async fn query_yields( |
| 823 | plan: Arc<dyn ExecutionPlan>, |
| 824 | task_ctx: Arc<TaskContext>, |
| 825 | ) -> Result<(), Box<dyn Error>> { |
| 826 | // Run plan through EnsureCooperative |
| 827 | let optimized = |
| 828 | EnsureCooperative::new().optimize(plan, task_ctx.session_config().options())?; |
| 829 | |
| 830 | // Get the stream |
| 831 | let stream = physical_plan::execute_stream(optimized, task_ctx)?; |
| 832 | |
| 833 | // Spawn a task that tries to poll the stream and check whether given stream yields |
| 834 | stream_yields(stream).await |
| 835 | } |
no test coverage detected
searching dependent graphs…