The original \"why\" of what I want to do is:
Restore a table maintaining its original partitioning instead of it all going into today\'s partition.
What I thoug
Answering myself here. Another approach I've seen done is to write a script that:
Parses the tablebackup.json
file, outputs many files tablebackuppartitionYYYYMMDD.json
split on a provided parameter.
Creates a batch script to bq load
all the files into the appropriate table partitions.
The script would need to process row by row or chunks to be able to handle massive backups. And would take some time. The advantage of using this method is it would be generic and usable by an untrained-in-BQ sysadmin.