View on GitHub

JODA - JSON On Demand Analysis

Efficient data wrangling for semi-structured JSON documents

LEN - String

Returns the length of the passed string

Input parameters

Name Type Optional Description
str String False String to check the length of

Output

Number: The length of the given string

Usage

LEN(<str>)

Examples

Example 1

Query

LOAD tmp
AS ('': LEN("Hello World"))

Result

11

Example 2

Query

LOAD tmp
AS ('': LEN("Hello"))

Result

5