delta()

    For more information about counter aggregation functions, see the hyperfunctions documentation.

    NameTypeDescription
    deltaDOUBLE PRECISIONThe delta computed from the CounterSummary
    1. SELECT
    2. id,
    3. delta(summary)
    4. FROM (
    5. SELECT
    6. id,
    7. counter_agg(ts, val) AS summary
    8. FROM foo
    9. GROUP BY id
    10. ) t