Merge pull request #1005 from GoogleCloudPlatform/jccb/fix-990
Only set partitioned table when sink type is bigquery
This commit is contained in:
commit
cb9a87dee4
|
@ -38,7 +38,7 @@ resource "google_logging_folder_sink" "sink" {
|
||||||
disabled = each.value.disabled
|
disabled = each.value.disabled
|
||||||
|
|
||||||
dynamic "bigquery_options" {
|
dynamic "bigquery_options" {
|
||||||
for_each = each.value.bq_partitioned_table != null ? [""] : []
|
for_each = each.value.type == "biquery" && each.value.bq_partitioned_table != false ? [""] : []
|
||||||
content {
|
content {
|
||||||
use_partitioned_tables = each.value.bq_partitioned_table
|
use_partitioned_tables = each.value.bq_partitioned_table
|
||||||
}
|
}
|
||||||
|
|
|
@ -37,7 +37,7 @@ resource "google_logging_organization_sink" "sink" {
|
||||||
disabled = each.value.disabled
|
disabled = each.value.disabled
|
||||||
|
|
||||||
dynamic "bigquery_options" {
|
dynamic "bigquery_options" {
|
||||||
for_each = each.value.bq_partitioned_table != null ? [""] : []
|
for_each = each.value.type == "biquery" && each.value.bq_partitioned_table != null ? [""] : []
|
||||||
content {
|
content {
|
||||||
use_partitioned_tables = each.value.bq_partitioned_table
|
use_partitioned_tables = each.value.bq_partitioned_table
|
||||||
}
|
}
|
||||||
|
|
|
@ -37,7 +37,7 @@ resource "google_logging_project_sink" "sink" {
|
||||||
disabled = each.value.disabled
|
disabled = each.value.disabled
|
||||||
|
|
||||||
dynamic "bigquery_options" {
|
dynamic "bigquery_options" {
|
||||||
for_each = each.value.bq_partitioned_table != null ? [""] : []
|
for_each = each.value.type == "biquery" && each.value.bq_partitioned_table != null ? [""] : []
|
||||||
content {
|
content {
|
||||||
use_partitioned_tables = each.value.bq_partitioned_table
|
use_partitioned_tables = each.value.bq_partitioned_table
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue