From 06436dbae2f53533306f9663f4dd66cb64398d9e Mon Sep 17 00:00:00 2001 From: Tetsuro Sano Date: Wed, 6 Aug 2025 00:25:44 +0900 Subject: [PATCH] Fixed issue where time_partitioning settings were overridden when table name contains partition decorator --- lib/embulk/output/bigquery.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/embulk/output/bigquery.rb b/lib/embulk/output/bigquery.rb index 44e8b79..a5dd966 100644 --- a/lib/embulk/output/bigquery.rb +++ b/lib/embulk/output/bigquery.rb @@ -244,7 +244,7 @@ def self.configure(config, schema, task_count) if task['range_partitioning'] raise ConfigError.new "Partition decorators(`#{task['table']}`) don't support `range_partition`" end - task['time_partitioning'] = {'type' => 'DAY'} + task['time_partitioning'] ||= {'type' => 'DAY'} end if task['range_partitioning']