|
13 | 13 | use crate::coordinator::dataset::{ExecuteResult, ShowFunctionsResult, empty_record_batch}; |
14 | 14 | use crate::coordinator::plan::{ |
15 | 15 | CreateFunctionPlan, CreatePythonFunctionPlan, CreateTablePlan, DropFunctionPlan, |
16 | | - InsertStatementPlan, PlanNode, PlanVisitor, PlanVisitorContext, PlanVisitorResult, |
17 | | - ShowFunctionsPlan, StartFunctionPlan, StopFunctionPlan, |
| 16 | + LookupTablePlan, PlanNode, PlanVisitor, PlanVisitorContext, PlanVisitorResult, |
| 17 | + ShowFunctionsPlan, StartFunctionPlan, StopFunctionPlan, StreamingTable, |
| 18 | + StreamingTableConnectorPlan, |
18 | 19 | }; |
19 | 20 | use crate::coordinator::statement::{ConfigSource, FunctionSource}; |
20 | 21 | use crate::runtime::taskexecutor::TaskManager; |
@@ -215,17 +216,36 @@ impl PlanVisitor for Executor { |
215 | 216 | PlanVisitorResult::Execute(result) |
216 | 217 | } |
217 | 218 |
|
218 | | - fn visit_insert_statement_plan( |
| 219 | + fn visit_streaming_table( |
219 | 220 | &self, |
220 | | - plan: &InsertStatementPlan, |
| 221 | + _plan: &StreamingTable, |
221 | 222 | _context: &PlanVisitorContext, |
222 | 223 | ) -> PlanVisitorResult { |
223 | | - // TODO: start streaming pipeline for INSERT / anonymous query |
224 | | - let result = Err(ExecuteError::Internal(format!( |
225 | | - "INSERT statement execution not yet implemented. Program graph has {} node(s), {} connection(s)", |
226 | | - plan.program.graph.node_count(), |
227 | | - plan.connection_ids.len(), |
228 | | - ))); |
| 224 | + let result = Err(ExecuteError::Internal( |
| 225 | + "StreamingTable execution not yet implemented".to_string(), |
| 226 | + )); |
| 227 | + PlanVisitorResult::Execute(result) |
| 228 | + } |
| 229 | + |
| 230 | + fn visit_lookup_table( |
| 231 | + &self, |
| 232 | + _plan: &LookupTablePlan, |
| 233 | + _context: &PlanVisitorContext, |
| 234 | + ) -> PlanVisitorResult { |
| 235 | + let result = Err(ExecuteError::Internal( |
| 236 | + "LookupTable execution not yet implemented".to_string(), |
| 237 | + )); |
| 238 | + PlanVisitorResult::Execute(result) |
| 239 | + } |
| 240 | + |
| 241 | + fn visit_streaming_connector_table( |
| 242 | + &self, |
| 243 | + _plan: &StreamingTableConnectorPlan, |
| 244 | + _context: &PlanVisitorContext, |
| 245 | + ) -> PlanVisitorResult { |
| 246 | + let result = Err(ExecuteError::Internal( |
| 247 | + "StreamingTableConnector execution not yet implemented".to_string(), |
| 248 | + )); |
229 | 249 | PlanVisitorResult::Execute(result) |
230 | 250 | } |
231 | 251 | } |
0 commit comments