@zatae After looking more at my earlier response, I realized that the LogFlare stuff I linked to was more related to writing to BQ.
My solution to handling the output from BQ is generally based off the same StackOverflow link you posted.
FWIW, here is a gist of a single module I extracted from some production systems in my world. I did just toss in the handling for “JSON” data types, but didn’t test it. Only requirement outside of the BQ library is jason.
Not suggesting this is any better than the StackOverflow solution, but has a few opinionated things going on to meet my needs.






















