mozilla / docker-etl

Collection of dockerized ETL jobs managed by data engineering.
Mozilla Public License 2.0
16 stars 14 forks source link

fix(fxci): batch rows when inserting into BigQuery #265

Closed ahal closed 1 month ago

ahal commented 1 month ago

It turns out there's a 10MB limit when inserting data into BigQuery, and we can sometimes exceed that. The chunk size is set to 25000 because ~50k rows was about 11MB of json, so halving that seems safe.

This also upgrades to Python 3.12 as that's when itertools.batched was introduced. Possibly a silly reason to upgrade, but why not.

Checklist for reviewer: