MCPcopy Create free account
hub / github.com/apache/datafusion / execute

Method execute

datafusion/catalog/src/stream.rs:374–389  ·  view source on GitHub ↗
(&self, _ctx: Arc<TaskContext>)

Source from the content-addressed store, hash-verified

372 }
373
374 fn execute(&self, _ctx: Arc<TaskContext>) -> SendableRecordBatchStream {
375 let config = Arc::clone(&self.0);
376 let schema = Arc::clone(self.0.source.schema());
377 let mut builder = RecordBatchReceiverStreamBuilder::new(schema, 2);
378 let tx = builder.tx();
379 builder.spawn_blocking(move || {
380 let reader = config.reader()?;
381 for b in reader {
382 if tx.blocking_send(b.map_err(Into::into)).is_err() {
383 break;
384 }
385 }
386 Ok(())
387 });
388 builder.build()
389 }
390}
391
392#[derive(Debug)]

Callers 2

connectMethod · 0.45
runMethod · 0.45

Calls 7

newFunction · 0.85
txMethod · 0.80
readerMethod · 0.80
is_errMethod · 0.80
schemaMethod · 0.45
spawn_blockingMethod · 0.45
buildMethod · 0.45

Tested by

no test coverage detected