-
-
Notifications
You must be signed in to change notification settings - Fork 709
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
Improve aggregation error message #2150
Conversation
Improve aggregation error message by wrapping the deserialization with a custom struct. This deserialization variant is slower, since we need to keep the deserialized data around twice with this approach. For now the valid variants list is manually updated. This could be replaced with a proc macro. closes #2143
Codecov Report
❗ Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more. @@ Coverage Diff @@
## main #2150 +/- ##
=======================================
Coverage 94.32% 94.33%
=======================================
Files 320 320
Lines 62041 62054 +13
=======================================
+ Hits 58522 58539 +17
+ Misses 3519 3515 -4
|
src/aggregation/agg_req.rs
Outdated
/// Aggregation request. | ||
/// | ||
/// An aggregation is either a bucket or a metric. | ||
pub struct AggregationWrapper { |
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.
why pub and why inline the struct?
@PSeitz I pushed a commit with a less brittle approach. I leave it to you to modify if necessary and merge. |
Nice, I didn't know about |
Improve aggregation error message by wrapping the deserialization with a
custom struct. This deserialization variant is slower, since we need to
keep the deserialized data around twice with this approach.
For now the valid variants list is manually updated. This could be
replaced with a proc macro.
closes #2143