-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Missing fields in constraints model for manifest v12 #109
Comments
@airibarne thank you for raising the issue. I didn't catch up with the changes on manifest v12. It seems that the dbt version in manivest v12 is |
I've already raised this month ago here #99 |
Hi there! Oh @psygnoser, sorry I did not find the issue at first glance. It is indeed the same I'm reporting here. @yu-iskw, it's no blocker for us to wait until the release of stable 1.9, so we have no problem with that. However, we've encountered this issue trying to parse a manifest generated with 1.8, so there might be other users of this library encountering this error. Just let me know if there's anything we can do about it 😄 |
Thought the update doesn't solve this issue, I am updating |
Hi @yu-iskw! Firstly, thank you for your contribution, excellent and very needed package within the DBT ecosystem 😄
We are building a tool in top of the
dbt-artifacts-parser
, and we've found the following: while node column constraints schema specification in the DBT Manifest v12 hasto
andto_columns
fields, the current Pydantic parser interface for v12 does not have them, while hasextra=forbid
setting. This makes the parser to fail parsing v12 manifests obtained from projects having models with constraints.Here the v12 schema specification: https://schemas.getdbt.com/dbt/manifest/v12/index.html#nodes_additionalProperties_anyOf_i0_columns_additionalProperties_constraints
Here the class representation: https://github.com/yu-iskw/dbt-artifacts-parser/blob/main/dbt_artifacts_parser/parsers/manifest/manifest_v12.py#L128-L136
Would be happy to make a PR after any discussion you might want to have.
The text was updated successfully, but these errors were encountered: