The problem I’m having
HI,
I am trying to read json data in a table column. I got struck while reading data from an array.
json_column
“abbs”
“asdad”
“asda”
“ds”
“sdss”
array1:
0: “12121”
1: “12312”
2: “54464”
the code I have written is
select
json_column:array1[0]
from table.json_column.
What I am trying to achieve
select
{% for i in range( array_size) %}
json_column:array1[{{i}}]::number as values
from table.json_column
anybody can help on how to use the size of array in for loop??
Thanks