How to copy a partitioned table to another partitioned table in BigQuery
How to copy a partitioned table to another partitioned table in BigQuery I'm trying to copy one partitioned table into another one. According to the docs, this should be possible. If you want to copy a partitioned table into another partitioned table, the partition specifications for the source and destination tables must match. To test, I created two partitioned tables ( partition1 & partition2 ) with the same schema. I pushed 3 records into partition $20170101 on the partition1 table: partition1 partition2 $20170101 partition1 echo '{"a":1, "b":2}' | bq insert '<removed>.partition1$20170101' echo '{"a":1, "b":2}' | bq insert '<removed>.partition1$20170101' echo '{"a":1, "b":2}' | bq insert '<removed>.partition1$20170101' That looks good: Next, I pushed 2 records into the partition2 table and to the same partition ( $20170101 ): partition2 $20170101...
