File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
crates/duckdb/src/appender Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 11use super :: { ffi, Appender , Result } ;
22use crate :: {
3- core:: { DataChunkHandle , LogicalTypeHandle } ,
3+ core:: DataChunkHandle ,
44 error:: result_from_duckdb_appender,
55 vtab:: { record_batch_to_duckdb_data_chunk, to_duckdb_logical_type} ,
66 Error ,
@@ -28,7 +28,8 @@ impl Appender<'_> {
2828 /// Will return `Err` if append column count not the same with the table schema
2929 #[ inline]
3030 pub fn append_record_batch ( & mut self , record_batch : RecordBatch ) -> Result < ( ) > {
31- let fields = record_batch. schema ( ) . fields ( ) ;
31+ let schema = record_batch. schema ( ) ;
32+ let fields = schema. fields ( ) ;
3233 let capacity = fields. len ( ) ;
3334 let mut logical_types = Vec :: with_capacity ( capacity) ;
3435 for field in fields. iter ( ) {
You can’t perform that action at this time.
0 commit comments