Skip to content

bigquery: Add ANY_TABLE support for BigQuery routine arguments - #1571

Merged
modular-magician merged 1 commit into
terraform-google-modules:masterfrom
modular-magician:downstream-pr-aad42de6b6564e69c864647145979e60c9eaece1
Nov 9, 2026
Merged

modular-magician merged 1 commit into
terraform-google-modules:masterfrom
modular-magician:downstream-pr-aad42de6b6564e69c864647145979e60c9eaece1

Conversation

@modular-magician

Copy link
Copy Markdown
Collaborator

Adds ANY_TABLE to google_bigquery_routine.arguments.argument_kind so Terraform can define table-valued functions that accept a table without a fixed schema. BigQuery already supports this argument kind, but the provider's enum validation currently rejects it. See the BigQuery API reference and table parameter documentation.

Adds a generated documentation example and acceptance coverage for creation with ANY_TABLE, in-place updates to FIXED_TABLE and back, and verified import after each step. Also clarifies that data_type is required for FIXED_TYPE arguments.

Verification

  • Generated both GA and beta providers; reviewed the generated schema, documentation, and acceptance test.
  • make build passed in both generated providers, including formatting checks and go vet ./....
  • make testnolint TEST=./google/services/bigquery and make testnolint TEST=./google-beta/services/bigquery passed with TF_ACC unset.
  • Offline terraform validate passed using the freshly built GA provider with argument_kind = "ANY_TABLE" and both data_type and table_type omitted.
  • MMv1, internal tool, and magician Go unit tests, YAML lint, and new-template checks passed.
  • The broader pre-generation script fails in the existing Python test test_extract_gcs_links_from_issue_beta_in_test_name; the identical failure reproduces on untouched upstream commit 6fe4e0b0bfa86386665285edabc10c0dd8eb37e1.
  • Live acceptance tests were not run locally; BigQuery create/update/import behavior remains for upstream acceptance CI.

Release Note Template for Downstream PRs (will be copied)

bigquery: added support for `ANY_TABLE` in `arguments.argument_kind` on `google_bigquery_routine`

Derived from GoogleCloudPlatform/magic-modules#19417

[upstream:aad42de6b6564e69c864647145979e60c9eaece1]

Signed-off-by: Modular Magician <magic-modules@google.com>
@modular-magician
modular-magician merged commit 9e91938 into terraform-google-modules:master Nov 9, 2026
3 checks passed
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