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

Function basic_df_function_execute

datafusion/wasmtest/src/lib.rs:166–176  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

164
165 #[wasm_bindgen_test(unsupported = tokio::test)]
166 async fn basic_df_function_execute() {
167 let sql = "SELECT abs(-1.0);";
168 let statement = DFParser::parse_sql(sql).unwrap().pop_back().unwrap();
169 let ctx = get_ctx();
170 let logical_plan = ctx.state().statement_to_plan(statement).await.unwrap();
171 let data_frame = ctx.execute_logical_plan(logical_plan).await.unwrap();
172 let physical_plan = data_frame.create_physical_plan().await.unwrap();
173
174 let task_ctx = ctx.task_ctx();
175 let _ = collect(physical_plan, task_ctx).await.unwrap();
176 }
177
178 #[wasm_bindgen_test(unsupported = tokio::test)]
179 async fn test_basic_aggregate() {

Callers

nothing calls this directly

Calls 7

get_ctxFunction · 0.85
collectFunction · 0.50
statement_to_planMethod · 0.45
stateMethod · 0.45
execute_logical_planMethod · 0.45
create_physical_planMethod · 0.45
task_ctxMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…