(
&self,
_state: &dyn Session,
input: Arc<dyn ExecutionPlan>,
_insert_op: InsertOp,
)
| 344 | } |
| 345 | |
| 346 | async fn insert_into( |
| 347 | &self, |
| 348 | _state: &dyn Session, |
| 349 | input: Arc<dyn ExecutionPlan>, |
| 350 | _insert_op: InsertOp, |
| 351 | ) -> Result<Arc<dyn ExecutionPlan>> { |
| 352 | let schema = self.0.source.schema(); |
| 353 | let orders = |
| 354 | create_lex_ordering(schema, &self.0.order, _state.execution_props())?; |
| 355 | // It is sufficient to pass only one of the equivalent orderings: |
| 356 | let ordering = orders.into_iter().next().map(Into::into); |
| 357 | |
| 358 | Ok(Arc::new(DataSinkExec::new( |
| 359 | input, |
| 360 | Arc::new(StreamWrite(Arc::clone(&self.0))), |
| 361 | ordering, |
| 362 | ))) |
| 363 | } |
| 364 | } |
| 365 | |
| 366 | #[derive(Debug)] |
nothing calls this directly
no test coverage detected