dataform
dataform copied to clipboard
fix(1805): dry run fails when table/view/assertion already does not exists
Solves https://github.com/dataform-co/dataform/issues/1805
- Tables/views: For a view / table the metadata need not be set when doing a dry run only query validation is sufficient as metadata cannot be set if the object is not yet being materialised in BigQuery
-
Assertions: No need to do
select sum(1) ...
on the view that will be created by the assertion. The query validation is sufficient to establish if the query that will be created is valid.
Tests
- Dry run on assertions pass if the query is correct
- Dry run on assertion correctly fails if the query is not valid
- Dry run on table/view passes if the query is valid
- Dry run on table/view correctly fails if the query is not valid
-
bazel test //core/...
passes