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

Method get_result

datafusion-examples/examples/flight/sql_server.rs:156–164  ·  view source on GitHub ↗
(&self, handle: &str)

Source from the content-addressed store, hash-verified

154 }
155
156 fn get_result(&self, handle: &str) -> Result<Vec<RecordBatch>, Status> {
157 if let Some(result) = self.results.get(handle) {
158 Ok(result.clone())
159 } else {
160 Err(Status::internal(format!(
161 "Request handle not found: {handle}"
162 )))?
163 }
164 }
165
166 async fn tables(&self, ctx: Arc<SessionContext>) -> RecordBatch {
167 let schema = Arc::new(Schema::new(vec![

Callers 1

do_get_fallbackMethod · 0.45

Calls 2

getMethod · 0.45
cloneMethod · 0.45

Tested by

no test coverage detected