Skip to main content
Version: v1.14.0

min

Aggregate Function

min minimum value of input values

Synopsis

min(...number) -> number

Description

The min aggregate function computes the minimum value of its input.

Examples

Minimum value of simple sequence:

echo '1 2 3 4' | zq -z 'min(this)' -

=>

1

Continuous minimum of simple sequence:

echo '1 2 3 4' | zq -z 'yield min(this)' -

=>

1
1
1
1

Unrecognized types are ignored:

echo '1 2 3 4 "foo"' | zq -z 'min(this)' -

=>

1