Closed GoogleCodeExporter closed 8 years ago
Add column is supported today, have a look at:
https://cloud.google.com/bigquery/docs/tables#updateschema
We don't currently plan to support renaming columns, but this could change in
the future. I'll pass the feature request along to the team.
If you are using queries to batch transform your data, you should be able to
issue them in --batch mode to avoid having to do your own queuing (the 50
concurrent jobs limit applies only to interactive mode for query jobs).
If you are concerned about blocking higher priority jobs with your batch
operations, you can insert those jobs at the default (interactive) priority and
they will be executed first.
Trivial example:
# Run a big batch of queries.
for i in `seq 1 50`; do (bq --nosync query --batch --nouse_cache "SELECT 42 as
batch_test" &); done
# Run an interactive query, it should complete quickly.
bq query "select 99"
Original comment by ada...@google.com
on 15 Mar 2016 at 8:39
Regarding: "If there is a way that we can get individual job_id's from a batch
request [...]"
You can specify your own job IDs. For example:
bq query --job_id="rename_fact_col_20140102" "SELECT 777"
This makes it easy to wait on job completion (without parsing the response):
bq wait --fail_on_error rename_fact_col_20140102
So your script could queue up all of the rename operations in parallel and then
wait on each of them to complete.
Original comment by ada...@google.com
on 15 Mar 2016 at 8:48
Original issue reported on code.google.com by
yuchen....@tapjoy.com
on 15 Mar 2016 at 5:29