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

Open
hoorayimhelping opened this issue Dec 2, 2019 · 0 comments
Assignees

Comments

@hoorayimhelping
Copy link
Contributor

@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")

when

  |> 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
Projects
None yet
1 participant
You can’t perform that action at this time.