[Feature] Support gauge_agg accessor function RATE #1391
Labels
component/function
component/query
documentation
Improvements or additions to documentation
good first issue
Good for newcomers
Milestone
Is your feature request related to a problem? Please describe.
Calculate the rate of change of the gauge_agg. This is the simple rate, equal to the last value minus the first value, divided by the time elapsed.
The unit of time_delta is determined by the time unit of the time column:
Describe the solution you'd like
Describe alternatives you've considered
Add to https://github.com/cnosdb/cnosdb/tree/main/query_server/query/src/extension/expr/scalar_function
Additional context
The mainstream database supports RATE show below:
timescaledb
https://docs.timescale.com/api/latest/hyperfunctions/counters-and-gauges/gauge_agg/#rate
The text was updated successfully, but these errors were encountered: