Count sub-objects' array length

How about:

SELECT SUM(ARRAY_LENGTH(r.data)) FROM results r

?

HTH.

1 Like