From 834f20481a6a634af91aed713e58b02ee6490dd9 Mon Sep 17 00:00:00 2001 From: tknodell-recurly <95709757+tknodell-recurly@users.noreply.github.com> Date: Thu, 9 May 2024 14:03:47 -0600 Subject: [PATCH] feat: Support use_table_schema bigquery option (#180) Co-authored-by: Imran Nayer --- README.md | 1 + main.tf | 1 + 2 files changed, 2 insertions(+) diff --git a/README.md b/README.md index 7d00d9b..7abc56c 100644 --- a/README.md +++ b/README.md @@ -55,6 +55,7 @@ module "pubsub" { name = "bigquery" // required table = "project.dataset.table" // required use_topic_schema = true // optional + use_table_schema = false // optional write_metadata = false // optional drop_unknown_fields = false // optional } diff --git a/main.tf b/main.tf index a9edc94..641b10f 100644 --- a/main.tf +++ b/main.tf @@ -365,6 +365,7 @@ resource "google_pubsub_subscription" "bigquery_subscriptions" { bigquery_config { table = each.value["table"] use_topic_schema = lookup(each.value, "use_topic_schema", false) + use_table_schema = lookup(each.value, "use_table_schema", false) write_metadata = lookup(each.value, "write_metadata", false) drop_unknown_fields = lookup(each.value, "drop_unknown_fields", false) }