Take the previously written batches from the work table. This will be called by the [`WorkTableExec`] when it is executed.
(&self)
| 73 | /// Take the previously written batches from the work table. |
| 74 | /// This will be called by the [`WorkTableExec`] when it is executed. |
| 75 | fn take(&self) -> Result<ReservedBatches> { |
| 76 | self.batches |
| 77 | .lock() |
| 78 | .unwrap() |
| 79 | .take() |
| 80 | .ok_or_else(|| internal_datafusion_err!("Unexpected empty work table")) |
| 81 | } |
| 82 | |
| 83 | /// Update the results of a recursive query iteration to the work table. |
| 84 | pub(super) fn update(&self, batches: ReservedBatches) { |
no outgoing calls