File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -124,7 +124,7 @@ impl Stream {
124
124
if self . options . mode != Mode :: Query || stream_type == StreamType :: Internal {
125
125
let filename =
126
126
self . filename_by_partition ( schema_key, parsed_timestamp, custom_partition_values) ;
127
- match guard. disk . get_mut ( schema_key ) {
127
+ match guard. disk . get_mut ( & filename ) {
128
128
Some ( writer) => {
129
129
writer. write ( record) ?;
130
130
}
@@ -136,12 +136,12 @@ impl Stream {
136
136
parsed_timestamp. and_local_timezone ( Utc ) . unwrap ( ) ,
137
137
OBJECT_STORE_DATA_GRANULARITY ,
138
138
) ;
139
- let file_path = self . data_path . join ( filename) ;
139
+ let file_path = self . data_path . join ( & filename) ;
140
140
let mut writer = DiskWriter :: try_new ( file_path, & record. schema ( ) , range)
141
141
. expect ( "File and RecordBatch both are checked" ) ;
142
142
143
143
writer. write ( record) ?;
144
- guard. disk . insert ( schema_key . to_owned ( ) , writer) ;
144
+ guard. disk . insert ( filename , writer) ;
145
145
}
146
146
} ;
147
147
}
You can’t perform that action at this time.
0 commit comments