Closed Nocccer closed 7 months ago
related issues:
Thank you for your contribution! There is a community owned fork of Flux that would be a great place to open a PR with your new feature. More context:
We are still supporting Flux, but are not doing active development on it or adding any new features to it. We still do security patches and will address any critical defects through the maintenance period. Our focus now is on features related to our latest database engine, InfluxDB 3.0, and its associated products (Cloud Serverless, Cloud Dedicated, Clustered, Edge).
Description
This PR adds boolean support for the following aggregation functions:
max()
: Detects the first rising edge or returns the first value, if all falsemin()
: Detects the first falling edge or returns the first value, if all trueI added this because writing this inside flux itself is really slow. You need to first split all values into numerics and bool (inefficient). Also using the reduce function is always 20% or more slower than the internal method.
Checklist
Dear Author :wave:, the following checks should be completed (or explicitly dismissed) before merging.
experimental/
docs/Spec.md
has been updatedDear Reviewer(s) :wave:, you are responsible (among others) for ensuring the completeness and quality of the above before approval.