Skip to main content
Since 1.16.0 Construct an aggregate that keeps track of the smallest values passed through it.

Arguments

NameTypeDefaultRequiredDescription
valueBIGINT | DOUBLE PRECISION | TIMESTAMPTZ-The values passed into the aggregate
capacityBIGINT-The number of values to retain.

Returns

The compiled aggregate. Note that the exact type is MinInts, MinFloats, or MinTimes depending on the input type