•
Discovery API:dataform.v1↗
•
Caught 7 days ahead of release
Released (7d lead)Breaking Change
Docs

Dataform adds BigQuery Unit Testing and End-User Auth

Dataform adds BigQuery Unit Testing and End-User Auth

Dataform introduces native support for BigQuery unit tests and granular execution modes. Several fields related to test results and authentication are now strictly read-only.

dataform.v1 had no additional version-exclusive schema or method changes beyond the shared cross-version updates detailed below.

Shared Across Versions (v1, v1beta1)

2 shared changes · 0 shared methods

Developers can now define and execute BigQuery unit tests directly within Dataform workflows. The new BigQueryUnitTest schema supports defining test queries and expected outputs, while InvocationConfig adds an executionMode to toggle between running standard actions or unit tests (e.g., UNIT_TESTS_ONLY). Additionally, new authentication schemas (EndUserAuthConfig) allow for repository access via OAuth, enabling workflows to run under specific user identities.

Breaking Change: Several fields have been transitioned to readOnly (immutable). This includes test result metadata like totalBilledBytes, actualResultsJobId, and expectedResultsSqlScript in BigQueryUnitTestAction, as well as userEmail in EndUserAuthenticationConfig. Developers must ensure their automation scripts or API clients do not attempt to provide values for these fields in write operations, as they are now strictly output-only.