Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix sorted queries do not produce sorted results for shardable queries #5148

Merged
merged 4 commits into from
Feb 15, 2023

Conversation

harry671003
Copy link
Contributor

@harry671003 harry671003 commented Feb 15, 2023

What this PR does:
This PR addresses a bug in query vertical sharding where the merged result doesn't sort the series by sample value for sort() and sort_desc() functions.

Which issue(s) this PR fixes:
Fixes: thanos-io/thanos#6059
Thanos PR: thanos-io/thanos#6125

Checklist

  • Tests updated
  • Documentation added
  • CHANGELOG.md updated - the order of entries should be [CHANGE], [FEATURE], [ENHANCEMENT], [BUGFIX]

Signed-off-by: 🌲 Harry 🌊 John 🏔 <johrry@amazon.com>
Signed-off-by: 🌲 Harry 🌊 John 🏔 <johrry@amazon.com>
@harry671003 harry671003 changed the title Fix shard by Fix sorted queries do not produce sorted results for shardable queries Feb 15, 2023
Signed-off-by: 🌲 Harry 🌊 John 🏔 <johrry@amazon.com>
Copy link
Collaborator

@yeya24 yeya24 left a comment

Choose a reason for hiding this comment

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

Nice! We can merge on green.

Signed-off-by: 🌲 Harry 🌊 John 🏔 <johrry@amazon.com>
@alanprot
Copy link
Member

It would be nice to have this on Thanos as well so we are sure both projects has the same solution

@yeya24 yeya24 merged commit 74d33df into cortexproject:master Feb 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

query frontend: sorted queries do not produce sorted results for shardable queries
3 participants