Skip to content

Commit 2aece24

Browse files
authored
fix google_bigquery_table schema check with row_access_policy (#15215)
1 parent 36bf0b3 commit 2aece24

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

mmv1/third_party/terraform/services/bigquery/resource_bigquery_table.go.tmpl

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -450,6 +450,11 @@ func resourceBigQueryTableSchemaCustomizeDiffFunc(d tpgresource.TerraformResourc
450450
// same as above
451451
log.Printf("[DEBUG] unable to unmarshal json customized diff - %v", err)
452452
}
453+
454+
// no is schema changeable check needed, if new schema is old schema
455+
if reflect.DeepEqual(old, new) {
456+
return nil
457+
}
453458
_, isExternalTable := d.GetOk("external_data_configuration")
454459
isChangeable, err := resourceBigQueryTableSchemaIsChangeable(old, new, isExternalTable, true, hasRowAccessPolicyFunc)
455460
if err != nil {

0 commit comments

Comments
 (0)