You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Change default value of `auto_create_table` to `true` from `false`.
* Drop supporting `auto_create_table: false` for mode: `append`, `replace`, `replace_backup`, `delete_in_advance` which could be used for specifying a partitioned table with a partition decorator on behalf of simplicity.
| auto_create_table | boolean | optional |false| See [Dynamic Table Creating](#dynamic-table-creating) and [Time Partitioning](#time-partitioning)|
50
+
| auto_create_table | boolean | optional |true|`false` is available only for `append_direct` mode. Other modes requires `true`. See [Dynamic Table Creating](#dynamic-table-creating) and [Time Partitioning](#time-partitioning)|
| job_status_max_polling_time | int | optional | 3600 sec | Max job status polling time |
@@ -250,11 +250,6 @@ out:
250
250
251
251
### Dynamic table creating
252
252
253
-
This plugin tries to create a table using BigQuery API when
254
-
255
-
* mode is either of `delete_in_advance`, `replace`, `replace_backup`, `append`.
256
-
* mode is `append_direct` and `auto_create_table` is true.
257
-
258
253
There are 3 ways to set schema.
259
254
260
255
#### Set schema.json
@@ -383,32 +378,31 @@ To load into a partition, specify `table` parameter with a partition decorator a
383
378
out:
384
379
type: bigquery
385
380
table: table_name$20160929
386
-
auto_create_table: true
387
381
```
388
382
389
-
You may configure `time_partitioning` parameter together to create table via `auto_create_table: true` option as:
383
+
You may configure `time_partitioning` parameter together as:
390
384
391
385
```yaml
392
386
out:
393
387
type: bigquery
394
388
table: table_name$20160929
395
-
auto_create_table: true
396
389
time_partitioning:
397
390
type: DAY
398
391
expiration_ms: 259200000
399
392
```
400
393
401
394
You can also create column-based partitioning table as:
395
+
402
396
```yaml
403
397
out:
404
398
type: bigquery
405
399
mode: replace
406
-
auto_create_table: true
407
400
table: table_name
408
401
time_partitioning:
409
402
type: DAY
410
403
field: timestamp
411
404
```
405
+
412
406
Note the `time_partitioning.field` should be top-level `DATE` or `TIMESTAMP`.
413
407
414
408
Use [Tables: patch](https://cloud.google.com/bigquery/docs/reference/v2/tables/patch) API to update the schema of the partitioned table, embulk-output-bigquery itself does not support it, though.
0 commit comments