MOD

This page describes the MOD function in Lenses SQL.

MOD(numExpr, numExpr)

Alias for %.

Available in:

Processors
SQL Studio

Sample code:

USE `kafka`;
SELECT MOD(integer, 2) 
FROM numbers-data
LIMIT 1;

Output:

{
  "value": {
    "MOD": 0
  }
}

Last updated

Logo

2024 © Lenses.io Ltd. Apache, Apache Kafka, Kafka and associated open source project names are trademarks of the Apache Software Foundation.