mirror of
https://github.com/openobserve/openobserve.git
synced 2026-11-05 08:09:22 +00:00
- fix PromQL functions: irate, topk, bottomk, and histogram_quantile - perf: remove rayon `par_iter()` and some unnecessary clones This PR improved compliance coverage from 95.07% to ```bash ================================================================================ General query tweaks: * Openobserve is sometimes off by 1ms when parsing floating point start/end timestamps. * Openobserve fractional tolerance amount for <agg>_over_time queries ================================================================================ Total: 538 / 548 (98.18%) passed, 0 unsupported ``` <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **Bug Fixes** - Improved label handling and processing in the data evaluation functions. - Optimized value processing by removing unnecessary cloning operations. - Enhanced accuracy in time difference calculations in rate functions. - **Performance** - Streamlined iteration and filtering operations for better performance. - Simplified `Engine` instance creation to reduce overhead. - **Refactor** - Refined logic in histogram functions to handle empty buckets more effectively. - Adjusted control flow in extrapolated rate calculations for better efficiency. <!-- end of auto-generated comment: release notes by coderabbit.ai -->