Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

MAXK

This page describes the MAXK function in Lenses SQL.

MAXK(numExpr, N)

Returns the N largest values of a numExpr.

Available in:

Processor (stateless)
Processors (stateful)
SQL Studio

✓

Sample code:

USE `kafka`;
SELECT MAXK(total) 
FROM orders-events

Output:

{
  "value": {
    "MAXK": [
      99.92
    ]
  }
}

Last updated

Was this helpful?