Skip to content

Commit 1e0f108

Browse files
committed
fix: comment
1 parent 5398f69 commit 1e0f108

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -469,7 +469,7 @@ out:
469469
range:
470470
start: 1
471471
end: 99999
472-
range: 1
472+
interval: 1
473473
```
474474

475475
## Development

lib/embulk/output/bigquery/bigquery_client.rb

+4-1
Original file line numberDiff line numberDiff line change
@@ -411,7 +411,10 @@ def create_table_if_not_exists(table, dataset: nil, options: nil)
411411
dataset ||= @dataset
412412
options ||= {}
413413
options['time_partitioning'] ||= @task['time_partitioning']
414-
if Helper.has_partition_decorator?(table) && @task['range_partitioning'].nil?
414+
if Helper.has_partition_decorator?(table) && @task['range_partitioning'].present?
415+
raise Error, "range_partitioning and partition decorator are not supported at the same time"
416+
end
417+
if Helper.has_partition_decorator?(table)
415418
options['time_partitioning'] ||= {'type' => 'DAY'}
416419
table = Helper.chomp_partition_decorator(table)
417420
end

0 commit comments

Comments
 (0)