max

Table of Contents

Aggregate Function

max — maximum value of input values

Synopsis

max(number) -> number

Description

The max aggregate function computes the maximum value of its input.

Examples

Maximum value of simple sequence:

max(this)
1
2
3
4
Loading...

Continuous maximum of simple sequence:

yield max(this)
1
2
3
4
Loading...

Unrecognized types are ignored:

max(this)
1
2
3
4
"foo"
Loading...

Maximum value within buckets grouped by key:

max(a) by k |> sort
{a:1,k:1}
{a:2,k:1}
{a:3,k:2}
{a:4,k:2}
Loading...
Next: min

SuperDB