Files
openobserve/src
Taiming Liu 762b4d5a59 fix: several PromQL functions (#3584)
- 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 -->
2024-06-04 23:24:45 +02:00
..
2024-04-04 15:08:05 +08:00