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

logicalplan: fix edgecase with scalar() in distribution #511

Merged
merged 1 commit into from
Jan 30, 2025

Conversation

GiedriusS
Copy link
Member

scalar() is not really distributive from our experience. This is because it returns NaN even if the given vector selector doesn't match anything so as a consequence it is impossible to know whether the NaN is expected or not from the PoV of the root querier.

scalar() is not really distributive from our experience. This is because
it returns NaN even if the given vector selector doesn't match anything
so as a consequence it is impossible to know whether the NaN is expected
or not from the PoV of the root querier.

Signed-off-by: Giedrius Statkevičius <[email protected]>
@GiedriusS GiedriusS force-pushed the fix_scalar_edgecase branch from 2822dad to 6786ba8 Compare January 30, 2025 10:05
Copy link
Collaborator

@fpetkovski fpetkovski left a comment

Choose a reason for hiding this comment

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

🚀

@GiedriusS GiedriusS merged commit ba2290b into main Jan 30, 2025
7 checks passed
@GiedriusS GiedriusS deleted the fix_scalar_edgecase branch January 30, 2025 10:18
SungJin1212 pushed a commit to SungJin1212/promql-engine that referenced this pull request Feb 3, 2025
scalar() is not really distributive from our experience. This is because
it returns NaN even if the given vector selector doesn't match anything
so as a consequence it is impossible to know whether the NaN is expected
or not from the PoV of the root querier.

Signed-off-by: Giedrius Statkevičius <[email protected]>
yeya24 pushed a commit that referenced this pull request Feb 5, 2025
scalar() is not really distributive from our experience. This is because
it returns NaN even if the given vector selector doesn't match anything
so as a consequence it is impossible to know whether the NaN is expected
or not from the PoV of the root querier.

Signed-off-by: Giedrius Statkevičius <[email protected]>
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.

2 participants