SQRT

This page describes the SQRT function in Lenses SQL.

SQRT(numExpr)

Returns the square root of numExpr.

Available in:

ProcessorsSQL Studio

Sample code:

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

Output:

{
  "value": {
    "SQRT": "128.64680330268607",
    "integer": 16550
  }
}

Last updated

Logo

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