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

Function plan_and_collect

datafusion/core/tests/sql/mod.rs:126–128  ·  view source on GitHub ↗

Execute SQL and return results as a RecordBatch

(ctx: &SessionContext, sql: &str)

Source from the content-addressed store, hash-verified

124
125/// Execute SQL and return results as a RecordBatch
126async fn plan_and_collect(ctx: &SessionContext, sql: &str) -> Result<Vec<RecordBatch>> {
127 ctx.sql(sql).await?.collect().await
128}
129
130/// Execute query and return results as a Vec of RecordBatches
131async fn execute_to_batches(ctx: &SessionContext, sql: &str) -> Vec<RecordBatch> {

Calls 2

collectMethod · 0.80
sqlMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…