Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add validation to prevent BigQuery view from creation when input schema contains required fields #7755

Conversation

modular-magician
Copy link
Collaborator

Fixes hashicorp/terraform-provider-google#14220.

Old behavior: Create API is called to first create the view without schema, then Update API is called to apply the schema to the view, at which point it will result in an error if the schema contains any required fields. The new table is left created with fields being nullable. Subsequent apply will result in permadiff.

New behavior: No new table is created if view is specified while schema contains required fields.

Release Note Template for Downstream PRs (will be copied)

bigquery: added validation to prevent table view creation if schema contains required fields for `google_bigquery_table` resource

Derived from GoogleCloudPlatform/magic-modules#11101

…ma contains required fields (#11101)

[upstream:1d43e02fe8cbee792dc721792a3ed7dd3cfdde67]

Signed-off-by: Modular Magician <[email protected]>
@modular-magician modular-magician merged commit c1cdf12 into hashicorp:FEATURE-BRANCH-major-release-6.0.0 Jul 17, 2024
3 checks passed
@modular-magician modular-magician deleted the downstream-pr-1d43e02fe8cbee792dc721792a3ed7dd3cfdde67 branch November 16, 2024 03:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant