File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -119,7 +119,7 @@ impl RecordBatchProjector {
119
119
}
120
120
121
121
/// Do projection with record batch
122
- pub ( crate ) fn project_bacth ( & self , batch : RecordBatch ) -> Result < RecordBatch > {
122
+ pub ( crate ) fn project_batch ( & self , batch : RecordBatch ) -> Result < RecordBatch > {
123
123
RecordBatch :: try_new (
124
124
self . projected_schema . clone ( ) ,
125
125
self . project_column ( batch. columns ( ) ) ?,
@@ -209,7 +209,7 @@ mod test {
209
209
] ) ) as ArrayRef ;
210
210
let batch = RecordBatch :: try_new ( schema, vec ! [ int_array, struct_array] ) . unwrap ( ) ;
211
211
212
- let projected_batch = projector. project_bacth ( batch) . unwrap ( ) ;
212
+ let projected_batch = projector. project_batch ( batch) . unwrap ( ) ;
213
213
assert_eq ! ( projected_batch. num_columns( ) , 2 ) ;
214
214
let projected_int_array = projected_batch
215
215
. column ( 0 )
Original file line number Diff line number Diff line change @@ -133,7 +133,7 @@ pub struct EqualityDeleteFileWriter<B: FileWriterBuilder> {
133
133
#[ async_trait:: async_trait]
134
134
impl < B : FileWriterBuilder > IcebergWriter for EqualityDeleteFileWriter < B > {
135
135
async fn write ( & mut self , batch : RecordBatch ) -> Result < ( ) > {
136
- let batch = self . projector . project_bacth ( batch) ?;
136
+ let batch = self . projector . project_batch ( batch) ?;
137
137
if let Some ( writer) = self . inner_writer . as_mut ( ) {
138
138
writer. write ( & batch) . await
139
139
} else {
@@ -409,7 +409,7 @@ mod test {
409
409
let data_file = res. into_iter ( ) . next ( ) . unwrap ( ) ;
410
410
411
411
// check
412
- let to_write_projected = projector. project_bacth ( to_write) ?;
412
+ let to_write_projected = projector. project_batch ( to_write) ?;
413
413
check_parquet_data_file_with_equality_delete_write (
414
414
& file_io,
415
415
& data_file,
You can’t perform that action at this time.
0 commit comments