TOPK
This page describes the TOPK function in Lenses SQL.
Last updated
This page describes the TOPK function in Lenses SQL.
Last updated
2024 © Lenses.io Ltd. Apache, Apache Kafka, Kafka and associated open source project names are trademarks of the Apache Software Foundation.
Returns the K highest ranked values. The ranking is based on how many times a value has been seen.
Available in:
Processor (stateless) | Processors (stateful) | SQL Studio |
---|---|---|
Sample code:
Output:
✓