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(query) Corner case for Set Operator OR with on() #1689

Merged
merged 3 commits into from
Dec 1, 2023

Conversation

amolnayak311
Copy link
Contributor

Pull Request checklist

  • The commit(s) message(s) follows the contribution guidelines ?
  • Tests for the changes have been added (for bug fixes / features) ?
  • Docs have been added / updated (for bug fixes / features) ?

Current and New behavior :

SetOperator OR fixed in PR has a corner case specifically when using OR on. This since we use a Map which doesn't follow the order of the keys, RHS Rvs were getting executed prior to all LHS rvs get executed. Since the correctness of result depends on the order or execution since we use a bitmap to track all time instants where some LHS RV has results, there were some time instants where RHS RV returns results when it should have returned NaN. This PR fixes this edge case.

Copy link
Contributor

@kvpetrov kvpetrov left a comment

Choose a reason for hiding this comment

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

LGTM

@amolnayak311 amolnayak311 merged commit 8dad2d0 into filodb:develop Dec 1, 2023
1 check passed
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.

3 participants