-
Notifications
You must be signed in to change notification settings - Fork 544
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MQE: Add support for delta function (#9795)
* First step delta function Signed-off-by: Jon Kartago Lamida <[email protected]> * Enable delta functions.test Signed-off-by: Jon Kartago Lamida <[email protected]> * Add delta to engine_test.go Signed-off-by: Jon Kartago Lamida <[email protected]> * Clear up the comment Signed-off-by: Jon Kartago Lamida <[email protected]> * Flip floatRate isCounter check condition Signed-off-by: Jon Kartago Lamida <[email protected]> * Fix delta and implement delta annotation Signed-off-by: Jon Kartago Lamida <[email protected]> * Clear up comment for isCounter and isRate parameter Signed-off-by: Jon Kartago Lamida <[email protected]> * Remove unneeded comment Signed-off-by: Jon Kartago Lamida <[email protected]> * Fix delta should not consider reset Signed-off-by: Jon Kartago Lamida <[email protected]> * Add more tests Signed-off-by: Jon Kartago Lamida <[email protected]> * Extract delta from rate function (#10353) * Extract delta from rate function Signed-off-by: Jon Kartago Lamida <[email protected]> * Update pkg/streamingpromql/operators/functions/rate_increase.go Co-authored-by: Charles Korn <[email protected]> * Update pkg/streamingpromql/operators/functions/rate_increase.go Co-authored-by: Charles Korn <[email protected]> * Update pkg/streamingpromql/operators/functions/rate_increase.go Co-authored-by: Charles Korn <[email protected]> * Update pkg/streamingpromql/operators/functions/rate_increase.go Co-authored-by: Charles Korn <[email protected]> * Tidy up after applying PR suggestion Signed-off-by: Jon Kartago Lamida <[email protected]> * Remove unnecessary head subslice Signed-off-by: Jon Kartago Lamida <[email protected]> * Remove wrong placed annotation Signed-off-by: Jon Kartago Lamida <[email protected]> * Remove extra copySchema Signed-off-by: Jon Kartago Lamida <[email protected]> * Simplify native histogram sub schema Signed-off-by: Jon Kartago Lamida <[email protected]> * Remove TODO Signed-off-by: Jon Kartago Lamida <[email protected]> * The lastPoint should be last index of the head Signed-off-by: Jon Kartago Lamida <[email protected]> * Add delta counterResetHint test Signed-off-by: Jon Kartago Lamida <[email protected]> --------- Signed-off-by: Jon Kartago Lamida <[email protected]> Co-authored-by: Charles Korn <[email protected]> * Add various our tests to delta Signed-off-by: Jon Kartago Lamida <[email protected]> * Add reset_hint annotation test Signed-off-by: Jon Kartago Lamida <[email protected]> * Revert comment change Signed-off-by: Jon Kartago Lamida <[email protected]> * Revert whitespace removal Signed-off-by: Jon Kartago Lamida <[email protected]> * Add mix reset hint sample delta annotation Signed-off-by: Jon Kartago Lamida <[email protected]> * Remove too much whitespace Signed-off-by: Jon Kartago Lamida <[email protected]> * Add more delta tests Signed-off-by: Jon Kartago Lamida <[email protected]> * Remove unnecessary sprintf Signed-off-by: Jon Kartago Lamida <[email protected]> * Update pkg/streamingpromql/engine_test.go Co-authored-by: Charles Korn <[email protected]> * Update pkg/streamingpromql/engine_test.go Co-authored-by: Charles Korn <[email protected]> * Update pkg/streamingpromql/engine_test.go Co-authored-by: Charles Korn <[email protected]> * Update pkg/streamingpromql/engine_test.go Co-authored-by: Charles Korn <[email protected]> * Update pkg/streamingpromql/engine_test.go Co-authored-by: Charles Korn <[email protected]> * Simplify inline map Signed-off-by: Jon Kartago Lamida <[email protected]> * Really enable delta upstream tests Signed-off-by: Jon Kartago Lamida <[email protected]> --------- Signed-off-by: Jon Kartago Lamida <[email protected]> Co-authored-by: Charles Korn <[email protected]>
- Loading branch information
1 parent
56c9edd
commit 6511332
Showing
5 changed files
with
195 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters