Skip to content

Commit

Permalink
Merge branch 'main' into tracing
Browse files Browse the repository at this point in the history
  • Loading branch information
de-sh authored Dec 5, 2024
2 parents 10ff295 + dd2b8b2 commit a146c98
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/event/format/json.rs
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ impl EventFormat for Event {
infer_schema
.fields
.iter()
.filter(|field| !field.data_type().is_null())
.cloned()
.sorted_by(|a, b| a.name().cmp(b.name()))
.collect()
Expand Down
2 changes: 1 addition & 1 deletion src/handlers/http/ingest.rs
Original file line number Diff line number Diff line change
Expand Up @@ -384,7 +384,7 @@ mod tests {
let (rb, _) = into_event_batch(req, json, HashMap::default(), None, None).unwrap();

assert_eq!(rb.num_rows(), 1);
assert_eq!(rb.num_columns(), 6);
assert_eq!(rb.num_columns(), 5);
assert_eq!(
rb.column_by_name("a").unwrap().as_int64_arr(),
&Int64Array::from_iter([1])
Expand Down

0 comments on commit a146c98

Please sign in to comment.