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(core): Error downsampled query if lookback is short when querying rate/increase #1882

Merged
merged 7 commits into from
Nov 14, 2024

Conversation

vishramachandran
Copy link
Member

@vishramachandran vishramachandran commented Nov 7, 2024

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) ?

Rate requires 2 samples in lookback window. Instead of returning empty result for rate in downsampled dataset (such queries with small window and smaller publish interval are encountered frequently in downsampled dataset), we extend the lookback to two downsampled resolutions we error the query out when lookback is insufficient. This fix is imperfect, but serves as a workaround until a better solution is delivered. Status quo affects customers by producing wrong query results and leads to thinking that there is data loss, or even worse, implicit trust that the query results are right.

@vishramachandran vishramachandran changed the title fix(core): Auto-adjust lookback for downsampled data when querying rate fix(core): Error downsampled query if lookback is short when querying rate/increase Nov 14, 2024
amolnayak311
amolnayak311 previously approved these changes Nov 14, 2024
@vishramachandran vishramachandran merged commit 815f452 into filodb:develop Nov 14, 2024
1 check passed
@vishramachandran vishramachandran deleted the downsample-lookback branch November 14, 2024 19:15
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