Skip to content

Sort output labels after join in binary operator#251

Merged
fpetkovski merged 1 commit intothanos-io:mainfrom
fpetkovski:fix-239
Apr 28, 2023
Merged

Sort output labels after join in binary operator#251
fpetkovski merged 1 commit intothanos-io:mainfrom
fpetkovski:fix-239

Conversation

@fpetkovski
Copy link
Collaborator

When including labels from the low cardinality side, the output series can end up with in unsorted labelset. Since many downstream operators expect series labels to be sorted, this can lead to incorect query results.

This commit fixes the issue by sorting the labelset for output series after including low cardinality labels.

Fixes #239.

When including labels from the low cardinality side, the output series
can end up with in unsorted labelset. Since many downstream operators expect
series labels to be sorted, this can lead to incorect query results.

This commit fixes the issue by sorting the labelset for output series after
including low cardinality labels.
@fpetkovski fpetkovski merged commit d17367a into thanos-io:main Apr 28, 2023
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.

Engine issue: different results with thanos and prometheus engines. group_left?

2 participants