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

Method execute_stream

datafusion/core/src/dataframe/mod.rs:1584–1588  ·  view source on GitHub ↗

Executes this DataFrame and returns a stream over a single partition See [Self::collect] to buffer the `RecordBatch`es in memory. # Example ``` # use datafusion::prelude::*; # use datafusion::error::Result; # #[tokio::main] # async fn main() -> Result<()> { let ctx = SessionContext::new(); let df = ctx .read_csv("tests/data/example.csv", CsvReadOptions::new()) .await?; let stream = df.execute_st

(self)

Source from the content-addressed store, hash-verified

1582 /// Dropping the stream will abort the execution of the query, and free up
1583 /// any allocated resources
1584 pub async fn execute_stream(self) -> Result<SendableRecordBatchStream> {
1585 let task_ctx = Arc::new(self.task_ctx());
1586 let plan = self.create_physical_plan().await?;
1587 execute_stream(plan, task_ctx)
1588 }
1589
1590 /// Executes this DataFrame and collects all results into a vector of vector of RecordBatch
1591 /// maintaining the input partitioning.

Callers 15

same_runtimeFunction · 0.80
different_runtime_basicFunction · 0.80
deserialize_to_structFunction · 0.80
read_encryptedFunction · 0.80
read_encrypted_with_sqlFunction · 0.80
mainFunction · 0.80
criterion_benchmarkFunction · 0.80

Calls 4

newFunction · 0.85
execute_streamFunction · 0.85
task_ctxMethod · 0.45
create_physical_planMethod · 0.45