BigQuery initially did not support standard SQL-idiom
INSERT foo SELECT a,b,c from bar where d>0;
and you had to do it with --append_table
But according to @Will's answer, it works now.
Originally with bq it was
bq query --append_table ...
Help for bq query command
$ bq query --help
And the output shows the append_table option in the top 25% of the output.
Python script for interacting with BigQuery.
USAGE: bq.py [
query Execute a query.
Examples:
bq query 'select count(*) from publicdata:samples.shakespeare'
Usage:
query <sql_query>
Flags for query:
/home/paul/google-cloud-sdk/platform/bq/bq.py:
append.
(default: 'false')
(default: 'false')
(default: '')
...
UNION ALL, sql- .
, , SELECT something from tableA, tableB, UNION ALL, NOT a JOIN, , , , .