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
| auto_create_table | boolean | optional |false| See [Dynamic Table Creating](#dynamic-table-creating) and [Time Partitioning](#time-partitioning)|
42
+
| 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 |
@@ -242,11 +242,6 @@ out:
242
242
243
243
### Dynamic table creating
244
244
245
-
This plugin tries to create a table using BigQuery API when
246
-
247
-
* mode is either of `delete_in_advance`, `replace`, `replace_backup`, `append`.
248
-
* mode is `append_direct` and `auto_create_table` is true.
249
-
250
245
There are 3 ways to set schema.
251
246
252
247
#### Set schema.json
@@ -375,32 +370,31 @@ To load into a partition, specify `table` parameter with a partition decorator a
375
370
out:
376
371
type: bigquery
377
372
table: table_name$20160929
378
-
auto_create_table: true
379
373
```
380
374
381
-
You may configure `time_partitioning` parameter together to create table via `auto_create_table: true` option as:
375
+
You may configure `time_partitioning` parameter together as:
382
376
383
377
```yaml
384
378
out:
385
379
type: bigquery
386
380
table: table_name$20160929
387
-
auto_create_table: true
388
381
time_partitioning:
389
382
type: DAY
390
383
expiration_ms: 259200000
391
384
```
392
385
393
386
You can also create column-based partitioning table as:
387
+
394
388
```yaml
395
389
out:
396
390
type: bigquery
397
391
mode: replace
398
-
auto_create_table: true
399
392
table: table_name
400
393
time_partitioning:
401
394
type: DAY
402
395
field: timestamp
403
396
```
397
+
404
398
Note the `time_partitioning.field` should be top-level `DATE` or `TIMESTAMP`.
405
399
406
400
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