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

Method execute

datafusion/core/tests/fuzz_cases/once_exec.rs:97–107  ·  view source on GitHub ↗

Returns a stream which yields data

(
        &self,
        partition: usize,
        _context: Arc<TaskContext>,
    )

Source from the content-addressed store, hash-verified

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}

Calls 1

takeMethod · 0.45

Tested by

no test coverage detected