deltaSumTimestamp

    This function is primarily for materialized views that are ordered by some time bucket-aligned timestamp, for example, a bucket. Because the rows in such a materialized view will all have the same timestamp, it is impossible for them to be merged in the “right” order. This function keeps track of the of the values it’s seen, so it’s possible to order the states correctly during merging.

    To calculate the delta sum across an ordered collection you can simply use the function.

    Arguments

    Returned value

    Example

    Query: