Skip to main content

minForever (Aggregate Function)

This is the attribute aggregator to store the minimum value for a given attribute throughout the lifetime of the query regardless of any windows.

Syntax

    <INT|LONG|DOUBLE|FLOAT> minForever(<INT|LONG|DOUBLE|FLOAT> arg)

QUERY PARAMETERS

NameDescriptionDefault ValuePossible Data TypesOptionalDynamic
argThe value that needs to be compared to find the minimum value.INT LONG DOUBLE FLOATNoYes

Example 1

    insert into outputStream
select minForever(temp) as max
from inputStream;

minForever(temp) returns the minimum temp value recorded for all the events throughout the lifetime of the query.