Query editor
SELECTFROM_UNIXTIME(CAST(JSON_EXTRACT_SCALAR(json, '$.date') AS DOUBLE)) AS datetime,'TVL' AS data_type,CAST(JSON_EXTRACT_SCALAR(json, '$.tvl') AS DOUBLE) AS total_value_lockedFROM-- FIX APPLIED: Explicitly casting the JSON_PARSE result to an ARRAY(JSON)UNNEST(CAST(JSON_PARSE(HTTP_GET('https://api.llama.fi/v2/historicalChainTvl/Sui')) AS ARRAY(JSON))) AS t(json)WHEREFROM_UNIXTIME(TRY_CAST(JSON_EXTRACT_SCALAR(json, '$.date') AS DOUBLE)) >= CAST('2025-09-01' AS DATE)