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
dbt-labs/dbt-core#5058 is another step along dbt-labs/dbt-core#4788 to the new framework in order to empower adapter maintainers and other contributors to make use of the same tests that the core team uses for their own adapters. Effectively, this test is validates an adapter's ability to correctly generate the catalog that serves as the static backend of a project docs site.
If your adapter does not add extra relation-level metadata (e.g. table size (rows + bytes), last modified timestamp) which is the case by default, then you can follow the same inherit and pass pattern to enable your version of BaseDocsGenerate and BaseDocsGenReferences. However, if you are supplementing the catalog with more metadata, you'll have to:
### Summary
Added these tests as part of the requirements for upgrading to dbt-core
1.2.
### Description
#### BaseDocsGenerate
- Modify second_model.sql to explicitly use alternate schema
- Modify models fixture to use our version of second_model.sql
- Modify verify_catalog from dbt-core to exclude source table
verification
- Modify unique_schema fixture to prepend schema with rav-test folder
- Modify project_config_update fixture to prevent the seed being created
as a view
- Modify profiles fixture to make root_path the same as schema
- Modify expected_catalog fixture to accommodate dremio data types
- Include test_run_and_generate methods so they use our version of
verify_catalog
#### BaseDocsGenReferences
- Modify project_config_update fixture to allow creating a view for
seeds. This is because the ephemeral_summary models looks for the seed
under database.schema (which is only used for views).
- Modify unique_schema, profiles, and expected catalog fixtures for same
reasons as above
#### Utilities
- Modify base_expected_catalog to look for datalake instead of database
- Modify expected_references_catalog for the same reason above
#### Other
- Relevant imports
- Remove staging snapshot macro
### Related Issue
#43#36
### Additional Reviewers
@jlarue26@ArgusLi
From dbt-labs/dbt-core#5468:
The text was updated successfully, but these errors were encountered: