Skip to content

Add custom flattening that ignores array#344

Merged
nitisht merged 5 commits intoparseablehq:mainfrom
trueleo:flatten
Apr 2, 2023
Merged

Add custom flattening that ignores array#344
nitisht merged 5 commits intoparseablehq:mainfrom
trueleo:flatten

Conversation

@trueleo
Copy link
Copy Markdown
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