-
Notifications
You must be signed in to change notification settings - Fork 72
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
fix(match_datadog_query): do not panic when attempting to parse invalid paths #1031
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is an improvement so I'm ok with seeing it merged, but should it be bubbling up the errors instead of silently ignoring the invalid fields?
src/stdlib/match_datadog_query.rs
Outdated
let Ok(buf) = lookup_field(&field) else { | ||
return Run::boxed(|_| false); | ||
}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TIL this syntax works for assignments outside of conditions.
Oh yes, good point. I added an |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice! This is looking even better to me now. Just left a couple of comments inline.
closes: #998
playground examples