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

bug: scalar function with aggregation cause 500 #5207

Closed
yeya24 opened this issue Mar 10, 2023 · 0 comments · Fixed by #5221
Closed

bug: scalar function with aggregation cause 500 #5207

yeya24 opened this issue Mar 10, 2023 · 0 comments · Fixed by #5221

Comments

@yeya24
Copy link
Contributor

yeya24 commented Mar 10, 2023

Describe the bug

    query_fuzz_test.go:160: case 162 error mismatch.
        instant query: scalar(stddev without (job, series) ({series="0"}))
        err1: <nil>
        err2: server_error: server error: 500

11:47:04 cortex-2: level=warn ts=2023-03-10T19:47:04.909216585Z caller=logging.go:86 traceID=1bbdc4b3e4239fb5 msg="POST /api/prom/api/v1/query (500) 12.043959ms Response: \"unexpected result type on instant query: scalar\\n\" ws: false; Accept-Encoding: gzip; Content-Length: 145; Content-Type: application/x-www-form-urlencoded; User-Agent: Go-http-client/1.1; X-Scope-Orgid: user-1; "

In query frontend, we don't have the scalar type when merging because we assume scalar is not shardable. However, scalar(stddev without (job, series) ({series="0"})) is shardable and the result type is scalar.

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 a pull request may close this issue.

1 participant