|
@@ -180,12 +180,12 @@ Currently, 'zlib', 'gzip', 'flate' and 'zstd' method are supported.
|
|
|
|
|
|
## Array Functions
|
|
## Array Functions
|
|
|
|
|
|
-| Function | Example | Description |
|
|
|
|
-|------------|---------------------------|--------------------------------------------------------------------------------------------------------------------------------------|
|
|
|
|
-| array_position | array_postion(array, value) | Return a 0-based index of the first occurrence of val if it is found within array. If val does not exist within array, it returns -1 |
|
|
|
|
-| element_at | element_at(array, index) | Returns element of array at index val. If val < 0, this function accesses elements from the last to the first |
|
|
|
|
|
|
+| Function | Example | Description |
|
|
|
|
+|----------------|------------------------------|--------------------------------------------------------------------------------------------------------------------------------------|
|
|
|
|
+| array_position | array_position(array, value) | Return a 0-based index of the first occurrence of val if it is found within array. If val does not exist within array, it returns -1 |
|
|
|
|
+| element_at | element_at(array, index) | Returns element of array at index val. If val < 0, this function accesses elements from the last to the first |
|
|
| array_contains | array_contains(array, value) | Returns true if array contains the element |
|
|
| array_contains | array_contains(array, value) | Returns true if array contains the element |
|
|
-| array_create | array_create(value1, ......) | Construct an array from literals |
|
|
|
|
|
|
+| array_create | array_create(value1, ......) | Construct an array from literals |
|
|
|
|
|
|
## Object Functions
|
|
## Object Functions
|
|
|
|
|
|
@@ -321,7 +321,7 @@ Create a stream demo and have below inputs
|
|
Rule to get the unnest values with other columns:
|
|
Rule to get the unnest values with other columns:
|
|
|
|
|
|
```text
|
|
```text
|
|
-SQL: SELECT unnest(x), b FROM demo
|
|
|
|
|
|
+SQL: SELECT unnest(x), c FROM demo
|
|
___________________________________________________
|
|
___________________________________________________
|
|
{"a":1, "b":2, "c": 5}
|
|
{"a":1, "b":2, "c": 5}
|
|
{"a":3, "b":4, "c": 5}
|
|
{"a":3, "b":4, "c": 5}
|