View on GitHub

JODA - JSON On Demand Analysis

Efficient data wrangling for semi-structured JSON documents

GREATER - Comparison

Checks if lhs is greater than rhs.

Details

This function can also be written as infix notation <lhs> > <rhs>.

Input parameters

Name Type Optional Description
lhs String/Number False  
rhs String/Number False  

Output

Bool: True if lhs > rhs

Usage

GREATER(<lhs>, <rhs>)

Examples

Example 1

Query

LOAD tmp
AS ('': GREATER(5, 2))

Result

true

Example 2

Query

LOAD tmp
AS ('': GREATER(5, 5))

Result

false

Example 3

Query

LOAD tmp
AS ('': GREATER("A", "B"))

Result

false