I'm using API calls to retrieve data from a service. The data is Nested Json with arrays that might also contain Json objects.
Basically I want to upload it to tables within BigQuery. I created a table per array. Jason objects unpacked in the same table. For example:
Orders: All customer fields, all ShippingAdress, orderDateUtc etc..
Orders_items: orderid, discountEach, giftTo etc..
Order_items_historicalCategories: ....
I'm not sure about the best way to do that. I can create CSV files from the API call (data steam) and then use COPY per CSV to upload them but it seems excessive. I'm looking for a way to skip the CSV creation.
Is there an operator or package that can handle this data and directly upload it to the tables? I assume that what I need to do has already been done by many other organizations yet I didn't see any "build-in" method to do that in the docs https://cloud.google.com/bigquery/docs/loading-data
Any help would be appreciated.
