Returns a stream which yields data
(
&self,
partition: usize,
_context: Arc<TaskContext>,
)
| 95 | |
| 96 | /// Returns a stream which yields data |
| 97 | fn execute( |
| 98 | &self, |
| 99 | partition: usize, |
| 100 | _context: Arc<TaskContext>, |
| 101 | ) -> datafusion_common::Result<SendableRecordBatchStream> { |
| 102 | assert_eq!(partition, 0); |
| 103 | |
| 104 | let stream = self.stream.lock().unwrap().take(); |
| 105 | |
| 106 | stream.ok_or_else(|| internal_datafusion_err!("Stream already consumed")) |
| 107 | } |
| 108 | } |
no test coverage detected