Skip to content

Conversation

charleskorn
Copy link
Contributor

@charleskorn charleskorn commented Sep 25, 2024

What this PR does

This PR adds support in MQE for comparison operations: ==, !=, >, <, >= and <=.

This is supported with and without the bool modifier, and for all forms of binary operations: vector/vector, vector/scalar and scalar/scalar.

Which issue(s) this PR fixes or relates to

(none)

Checklist

  • Tests updated.
  • [n/a] Documentation added.
  • CHANGELOG.md updated - the order of entries should be [CHANGE], [FEATURE], [ENHANCEMENT], [BUGFIX].
  • [n/a] about-versioning.md updated with experimental features.

@charleskorn charleskorn marked this pull request as ready for review September 25, 2024 07:12
@charleskorn charleskorn requested review from tacole02 and a team as code owners September 25, 2024 07:12
Copy link
Contributor

@aknuds1 aknuds1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

Copy link
Contributor

@tacole02 tacole02 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

Co-authored-by: Arve Knudsen <arve.knudsen@gmail.com>
Copy link
Contributor

@jhesketh jhesketh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks! Hopefully the upstream bug doesn't happen too often confusing our comparison results.

# Conflicts:
#	CHANGELOG.md
#	cmd/mimir/config-descriptor.json
#	cmd/mimir/help-all.txt.tmpl
#	docs/sources/mimir/configure/configuration-parameters/index.md
#	pkg/streamingpromql/config.go
#	pkg/streamingpromql/engine_test.go
#	pkg/streamingpromql/query.go
@charleskorn charleskorn enabled auto-merge (squash) September 26, 2024 03:09
@charleskorn charleskorn merged commit 76caff9 into main Sep 26, 2024
29 checks passed
@charleskorn charleskorn deleted the charleskorn/mqe-comparison-operations branch September 26, 2024 03:22
@charleskorn charleskorn restored the charleskorn/mqe-comparison-operations branch September 26, 2024 03:34
@charleskorn charleskorn deleted the charleskorn/mqe-comparison-operations branch September 26, 2024 03:35
@jhesketh jhesketh mentioned this pull request Dec 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants