How to get average document size in bucket

When sizing it’s helpful to know what the average document size is. The below query will output that.

select AVG(length(ENCODE_JSON(t))) as size
from `travel-sample` as t
2 Likes

Thanks for posting this tip, @melboulos :smiley: