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

Query Builder: Clean Up Generated Queries #16076

hoorayimhelping opened this issue Dec 2, 2019 · 0 comments


Copy link

@hoorayimhelping hoorayimhelping commented Dec 2, 2019

Queries produced by the query builder are a bit clunky. This is a catch-all to list issues that can be cleaned up.

Consecutive Filters

Two filter Tag Selectors produce a query like this:

  |> filter(fn: (r) => r._measurement == "mem")
  |> filter(fn: (r) => r._field == "active")


  |> filter(fn: (r) => (r._measurement == "mem") and (r._field == "active"))

is probably more readable and more like what a human might write.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
1 participant
You can’t perform that action at this time.