View on GitHub

JODA - JSON On Demand Analysis

Efficient data wrangling for semi-structured JSON documents

SUM - Mathematical

Calculates the sum of x and y

Input parameters

Name Type Optional Description
x Number False  
y Number False  

Output

Number: x + y

Usage

SUM(<x>, <y>)

Examples

Example 1

Query

LOAD tmp
AS ('': SUM(1, 2))

Result

3

Example 2

Query

LOAD tmp
AS ('': SUM(-5, 2))

Result

-3

Example 3

Query

LOAD tmp
AS ('': SUM(2.5, 1))

Result

3.5