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)
| 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. |