File tree Expand file tree Collapse file tree 2 files changed +10
-9
lines changed Expand file tree Collapse file tree 2 files changed +10
-9
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,8 @@ build = "build.rs"
99
1010[dependencies ]
1111# Arrow and DataFusion ecosystem
12- arrow-array = { version = " 53.0.0" }
12+ arrow = " 53.0.0"
13+ arrow-array = " 53.0.0"
1314arrow-flight = { version = " 53.0.0" , features = [" tls" ] }
1415arrow-ipc = { version = " 53.0.0" , features = [" zstd" ] }
1516arrow-json = " 53.0.0"
Original file line number Diff line number Diff line change 2020#![ allow( deprecated) ]
2121
2222use anyhow:: anyhow;
23+ use arrow:: compute:: concat_batches;
2324use arrow_array:: RecordBatch ;
2425use arrow_json:: reader:: { infer_json_schema_from_iterator, ReaderBuilder } ;
2526use arrow_schema:: { DataType , Field , Fields , Schema } ;
@@ -282,14 +283,13 @@ impl EventFormat for Event {
282283 key. push_str ( & format ! ( "&{k}={v}" ) ) ;
283284 }
284285
285- partitions. insert (
286- key,
287- PartitionEvent {
288- rb,
289- parsed_timestamp,
290- custom_partition_values,
291- } ,
292- ) ;
286+ let entry = partitions. entry ( key) . or_insert ( PartitionEvent {
287+ rb : RecordBatch :: new_empty ( schema. clone ( ) ) ,
288+ parsed_timestamp,
289+ custom_partition_values,
290+ } ) ;
291+
292+ entry. rb = concat_batches ( & schema, [ & entry. rb , & rb] ) ?;
293293 }
294294
295295 Ok ( super :: Event {
You can’t perform that action at this time.
0 commit comments