Skip to content

Commit 06436db

Browse files
committed
Fixed issue where time_partitioning settings were overridden when table name contains partition decorator
1 parent d5b22db commit 06436db

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/embulk/output/bigquery.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ def self.configure(config, schema, task_count)
244244
if task['range_partitioning']
245245
raise ConfigError.new "Partition decorators(`#{task['table']}`) don't support `range_partition`"
246246
end
247-
task['time_partitioning'] = {'type' => 'DAY'}
247+
task['time_partitioning'] ||= {'type' => 'DAY'}
248248
end
249249

250250
if task['range_partitioning']

0 commit comments

Comments
 (0)