Skip to content

Commit 44a524e

Browse files
committed
chomp partition from table name
1 parent fc7307d commit 44a524e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/embulk/output/bigquery/bigquery_client.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -532,7 +532,8 @@ def patch_description(fields, column_options)
532532

533533
fields = patch_description(table.schema.fields, @task['column_options'])
534534
table.schema.update!(fields: fields)
535-
client.patch_table(@project, @dataset, table.id, table)
535+
table_id = Helper.chomp_partition_decorator(@task['table'])
536+
client.patch_table(@project, @dataset, table_id, table)
536537
end
537538
end
538539
end

0 commit comments

Comments
 (0)