You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There are two possible errors relating to dry run:
Tables / views
If the table created by a .sqlx file is not already materialised on BigQuery the dry run will fail due to dry run trying to setMetadata on an view/table that does not exist yet. Relevant lines of code
In these lines metadata for the table/view that already does not exist will be undefined and trying to access .schema attribute of undefined results in the error shown below
Assertion
Assertion dry run will face if the table it is trying to create does not already exists. Possibly due to trying to run the following query in the current code base which tries to select from a object that does not exist yet
There are two possible errors relating to dry run:
Tables / views
setMetadata
on an view/table that does not exist yet. Relevant lines of codedataform/cli/api/commands/run.ts
Line 371 in 54dfa9c
dataform/cli/api/dbadapters/bigquery.ts
Lines 235 to 239 in 54dfa9c
In these lines metadata for the table/view that already does not exist will be undefined and trying to access
.schema
attribute of undefined results in the error shown belowAssertion
Assertion dry run will face if the table it is trying to create does not already exists. Possibly due to trying to run the following query in the current code base which tries to select from a object that does not exist yet
dataform/cli/api/dbadapters/execution_sql.ts
Line 177 in 54dfa9c
Minimal example to reproduce
To recreate this error for view/assertion type, the type can be replaced by either of the two
dataform run --dry-run --tags="TEST_DRY_RUN"
dataform version:
3.0.2
and also tested by running it from sourceThe text was updated successfully, but these errors were encountered: