Arrays
This page describes examples of using arrays in Lenses SQL Studio to query Kafka.
For a full list of array functions see the SQL Reference.
Create an array field
You can create array fields using the ..[]
syntax:
Select an array field
Tables can store data containing arrays. Here is a SQL statement for querying an array item:
When working with arrays is good to check the array bounds. See the SIZEOF
function in the list of supported functions.
Query for array size
Sometimes you want to find out how many items are in your array. To do so you can run:
Last updated