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
check-column-name-contract always returns nothing ("Passed") for Versioned models.
In my debugging it seems that the problem is caused in this line models = get_models(catalog, filenames, include_disabled=include_disabled)
with 'catalog' as a parameter instead of 'manifest'
Called this way get_models() - returns no models, as inside it, the call to node.get('version') returns None and the filenames are not matched to the models.
Now I do not know how to fix it, as it seems that the call to get_models() with catalog is needed to later check the data types, I do not understand the internals of dbt-checkpoint enough.
The text was updated successfully, but these errors were encountered:
awal11
changed the title
check-column-name-contract does not work with Versioned models
check-column-name-contract (and maybe other checkpoints based on Schema) does not work with Versioned models
Apr 5, 2024
the same problem happens in check-model-name-contract in this line
Looking at that - this might affect any other test that relies only on catalog.json?
awal11
changed the title
check-column-name-contract (and maybe other checkpoints based on Schema) does not work with Versioned models
check-column-name-contract (and maybe other checkpoints based on Catalog) does not work with Versioned models
Apr 5, 2024
check-column-name-contract always returns nothing ("Passed") for Versioned models.
In my debugging it seems that the problem is caused in this line
models = get_models(catalog, filenames, include_disabled=include_disabled)
with 'catalog' as a parameter instead of 'manifest'
Called this way get_models() - returns no models, as inside it, the call to node.get('version') returns None and the filenames are not matched to the models.
Now I do not know how to fix it, as it seems that the call to get_models() with catalog is needed to later check the data types, I do not understand the internals of dbt-checkpoint enough.
The text was updated successfully, but these errors were encountered: