We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d096ce0 commit e15b0d2Copy full SHA for e15b0d2
src/event/format/json.rs
@@ -292,20 +292,17 @@ impl EventFormat for Event {
292
.join("")
293
);
294
295
- match json_partitions.get_mut(&prefix) {
296
- Some(JsonPartition { batch, .. }) => batch.push(json),
297
- _ => {
298
- let date = parsed_timestamp.date();
299
- let batch = vec![json];
300
- json_partitions.insert(
301
- prefix,
302
- JsonPartition {
303
- batch,
304
- schema,
305
- date,
306
- },
307
- );
308
- }
+ if let Some(JsonPartition { batch, .. }) = json_partitions.get_mut(&prefix) {
+ batch.push(json)
+ } else {
+ json_partitions.insert(
+ prefix,
+ JsonPartition {
+ batch: vec![json],
+ schema,
+ date: parsed_timestamp.date(),
+ },
+ );
309
}
310
311
0 commit comments