(&self, _ctx: Arc<TaskContext>)
| 1114 | } |
| 1115 | |
| 1116 | fn execute(&self, _ctx: Arc<TaskContext>) -> SendableRecordBatchStream { |
| 1117 | // We create an iterator from the record batches and map them into Ok values, |
| 1118 | // converting the iterator into a futures::stream::Stream |
| 1119 | Box::pin(RecordBatchStreamAdapter::new( |
| 1120 | self.schema.clone(), |
| 1121 | futures::stream::iter(self.batches.clone()).map(Ok), |
| 1122 | )) |
| 1123 | } |
| 1124 | } |
| 1125 | |
| 1126 | /// Wrapper over a TableProvider that can provide ordering information |
no test coverage detected