@@ -13,8 +13,8 @@ use crate::storage::StorageImpl;
1313use arrow:: record_batch:: RecordBatch ;
1414use futures:: stream:: BoxStream ;
1515use futures:: TryStreamExt ;
16- use crate :: execution_v1:: physical_plan:: physical_insert:: PhysicalInsert ;
1716use crate :: execution_v1:: volcano_executor:: insert:: Insert ;
17+ use crate :: planner:: operator:: insert:: InsertOperator ;
1818
1919pub type BoxedExecutor = BoxStream < ' static , Result < RecordBatch , ExecutorError > > ;
2020
@@ -41,10 +41,12 @@ impl VolcanoExecutor {
4141 PhysicalOperator :: CreateTable ( op) => match & self . storage {
4242 StorageImpl :: InMemoryStorage ( storage) => CreateTable :: execute ( op, storage. clone ( ) ) ,
4343 } ,
44- PhysicalOperator :: Insert ( PhysicalInsert { table_name, col_idxs, cols, } ) => {
44+ PhysicalOperator :: Insert ( op) => {
45+ let InsertOperator { table, col_idxs, cols } = op. op ;
46+
4547 match & self . storage {
4648 StorageImpl :: InMemoryStorage ( storage) =>
47- Insert :: execute ( table_name , col_idxs, cols, storage. clone ( ) ) ,
49+ Insert :: execute ( table , col_idxs, cols, storage. clone ( ) ) ,
4850 }
4951 }
5052 }
0 commit comments