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

Method get_plan

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

Source from the content-addressed store, hash-verified

146 }
147
148 fn get_plan(&self, handle: &str) -> Result<LogicalPlan, Status> {
149 if let Some(plan) = self.statements.get(handle) {
150 Ok(plan.clone())
151 } else {
152 Err(Status::internal(format!("Plan handle not found: {handle}")))?
153 }
154 }
155
156 fn get_result(&self, handle: &str) -> Result<Vec<RecordBatch>, Status> {
157 if let Some(result) = self.results.get(handle) {

Callers 1

Calls 2

getMethod · 0.45
cloneMethod · 0.45

Tested by

no test coverage detected