SIZE - Array
Returns the size of the array
Input parameters
Name | Type | Optional | Description |
---|---|---|---|
arr |
Array | False |
Output
Number: Size of the array
Usage
SIZE(<arr>)
Examples
Example 1
Input Document
[1,2,3]
Query
LOAD tmp
AS ('': SIZE(''))
Result
3
Example 2
Input Document
[1,2,3,4,"String"]
Query
LOAD tmp
AS ('': SIZE(''))
Result
5