ABS

This page describes the ABS function in Lenses SQL.

ABS(numExpr)

Returns the absolute value of an expression that evaluates to a number type.

Available in:

ProcessorsSQL Studio

Sample code:

USE `kafka`;
SELECT 
    ACOS(total/100.0) AS arccosine_total_ratio, 
    total 
FROM orders-events
LIMIT 1;

Output:

{
  "value": {
    "arccosine_total_ratio": "1.119313791750037",
    "total": 43.63
  }
}

Last updated

Logo

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