I am trying to run the following query on Google Big Query.
It shows as valid in the console, when running it, I get this error message:
"Array cannot have a null element; error in writing field result"
How do resolve this?
standardSQL
SELECT
ARRAY(
SELECT regexp_extract(x, r'^(.*?)\:')
FROM UNNEST(split(V2Themes,',')) AS x
) AS result
FROM `gdelt-bq.gdeltv2.gkg_partitioned`
WHERE _PARTITIONTIME BETWEEN TIMESTAMP('2019-02-02') AND TIMESTAMP('2019-02-02')