Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add custom flattening that ignores array #344

Merged
merged 5 commits into from
Apr 2, 2023
Merged

Conversation

trueleo
Copy link
Contributor

@trueleo trueleo commented Mar 21, 2023

Description

Removes rust_flatten_json because it flattens arrays as well which is not required.

Flatten JSON objects only, This includes object within an array as well. Any nested array withing an array will throw an error. This behaviour might change in future.

Changes

  • Add flatten.rs module in utils
  • Replace usage of rust_flatten_json with new module
  • Improve schema validity check to account for array.

This PR has:

  • been tested to ensure log ingestion and log query works.
  • added comments explaining the "why" and the intent of the code wherever would not be obvious for an unfamiliar reader.
  • added documentation for new or modified features or behaviors.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants