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

Nested BinOpExpr returns the incorrect query. #47

Open
Tracked by #44
gwdawson opened this issue Jul 27, 2023 · 0 comments
Open
Tracked by #44

Nested BinOpExpr returns the incorrect query. #47

gwdawson opened this issue Jul 27, 2023 · 0 comments

Comments

@gwdawson
Copy link
Member

gwdawson commented Jul 27, 2023

when using more than one BinOpExpr, the returned query is incorrect.
looking at the example, you can see that the first expr is duplicated and the third one is lost.

QUERY:
rate({one=""}[1m]) + rate({two=""}[5m]) + rate({three=""}[10m])


EXPECTED:
rate(
  {one=""}
  [1m]
)
+
rate(
  {two=""}
  [5m]
)
+
rate(
  {three=""}
  [10m]
)


ACTUAL:
rate(
  {one=""}
  [1m]
)
+
rate(
  {two=""}
  [5m]
)
+
rate(
  {one=""}
  [1m]
)
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

No branches or pull requests

1 participant