This page describes how to use ARRAY functions in Lenses SQL Processors.
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
This page describes the ELEMENT_OF function in Lenses SQL.
Return the element of array
at index.
Available in:
Processors | SQL Studio |
---|---|
Sample code:
Output:
✓
✓
This page describes the FLATTEN function in Lenses SQL.
Flatten an array of arrays into an array.
Available in:
Processors | SQL Studio |
---|---|
Sample code:
Output:
This page describes the IN_ARRAY function in Lenses SQL.
Check if element
is an element of array.
Available in:
Processors | SQL Studio |
---|---|
Sample code:
Output:
This page describes the REPEAT function in Lenses SQL.
Build an array repeating element
n
times.
Available in:
Processors | SQL Studio |
---|---|
Sample code:
Output:
This page describes the SIZEOF function in Lenses SQL.
Returns the number of elements in an array.
Available in:
Processors | SQL Studio |
---|---|
Sample code:
Output:
This page describes the ZIP_ALL function in Lenses SQL.
Zip two or more arrays into a single one, returning null
s when an array is not long enough.
Example: ZIP_ALL([1, 2], 'x', [3, 4, 5], 'y')
will be evaluated to [{ x: 1, y: 3 }, { x: 2, y: 4 }, { x: null, y: 5 }]
Available in:
Processors | SQL Studio |
---|---|
Sample code:
Output:
This page describes the ZIP function in Lenses SQL.
Zip two or more arrays into a single one.
Example: ZIP([1, 2], 'x', [3, 4, 5], 'y')
will be evaluated to [{ x: 1, y: 3 }, { x: 2, y: 4 }]
Available in:
Processors | SQL Studio |
---|---|
Sample code:
Output:
✓
✓
✓
✓
✓
✓
✓
✓
✓
✓
✓
✓