MCPcopy Create free account
hub / github.com/apache/datafusion / query_yields

Function query_yields

datafusion/core/tests/execution/coop.rs:822–835  ·  view source on GitHub ↗
(
    plan: Arc<dyn ExecutionPlan>,
    task_ctx: Arc<TaskContext>,
)

Source from the content-addressed store, hash-verified

820}
821
822async 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}

Callers 13

agg_no_grouping_yieldsFunction · 0.85
agg_grouping_yieldsFunction · 0.85
agg_grouped_topk_yieldsFunction · 0.85
sort_yieldsFunction · 0.85
sort_merge_join_yieldsFunction · 0.85
filter_yieldsFunction · 0.85
join_yieldsFunction · 0.85
join_agg_yieldsFunction · 0.85
hash_join_yieldsFunction · 0.85

Calls 6

newFunction · 0.85
execute_streamFunction · 0.85
stream_yieldsFunction · 0.85
session_configMethod · 0.80
optimizeMethod · 0.45
optionsMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…