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

For structured data add ability to skip schemas matching criterion. #61

Merged
merged 1 commit into from
Mar 18, 2024

Conversation

pondzix
Copy link
Contributor

@pondzix pondzix commented Mar 7, 2024

Slightly different than filtering for unstructured events:

  • For unstructured, filtering is implemented in Transform by filtering matching entities from events. It's executed for each entity, for each event.
  • For structured, filtering is implemented in NonAtomicFields.resolveTypes. Resolving types is executed once per batch of events, so it's more efficient than doing it for each event in Transform.

We can't use this approach for unstructured events because we don't have the step of resolving types.

@pondzix pondzix force-pushed the skip_schemas_structured branch from ca11ce8 to 40bea85 Compare March 7, 2024 23:42
@pondzix pondzix force-pushed the skip_schemas_structured branch from 86e3319 to 30e9862 Compare March 11, 2024 20:47
@pondzix pondzix force-pushed the skip_schemas_structured branch 2 times, most recently from 37e57f6 to 57d8e52 Compare March 13, 2024 17:34
Copy link
Contributor

@istreeter istreeter left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great!

@pondzix pondzix force-pushed the skip_schemas_structured branch 2 times, most recently from 49b36ad to 5d87275 Compare March 18, 2024 08:48
Slightly different than filtering for unstructured events:

* For unstructured, filtering is implemented in `Transform` by filtering matching entities from events. It's executed for each entity, for each event.
* For structured, filtering is implemented in `NonAtomicFields.resolveTypes`. Resolving types is executed once per batch of events, so it's more efficient than doing it for each event in `Transform`.

We can't use this approach for unstructured events because we don't have the step of resolving types.
@pondzix pondzix force-pushed the skip_schemas_structured branch from 5d87275 to d07c1a3 Compare March 18, 2024 09:00
@pondzix pondzix merged commit d07c1a3 into develop Mar 18, 2024
1 check passed
@istreeter istreeter deleted the skip_schemas_structured branch March 18, 2024 23:25
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