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

min() and max() should support booleans #6494

Closed
LEW21 opened this issue Apr 28, 2016 · 1 comment
Closed

min() and max() should support booleans #6494

LEW21 opened this issue Apr 28, 2016 · 1 comment

Comments

@LEW21
Copy link

LEW21 commented Apr 28, 2016

min() and max() should be supported for booleans.

Current behavior: ERR: unsupported max iterator type: *influxql.booleanInterruptIterator

Desired behavior: handle true as 1 and false as 0 - return max(field) == true iff at least one row has the field set to true.

Use case: We're storing some boolean data near other, numeric stats, and want to downsample them with Continuous Queries. We only need to know if they were true at least once in the given time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants