-
Notifications
You must be signed in to change notification settings - Fork 14
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
[Feature] Bump pydantic to >=2.0.0 #134
Comments
Thanks for adding this issue Niall! Let me chat with the team about what it would take to upgrade pydantic. |
Thank you for the call out Nial 🙂 We've actually been waiting for the release of pydantic 2.0 for awhile, specifically because of the speed gains. Glad to see it's finally happened 🚀 We should absolutely look at moving to pydantic 2 for this project. I was hoping it would be straight forward. However, it looks like it's gonna be a bit hands on. A number of things have been deprecated, |
I've started a branch qmalcolm--pydantic-2-support |
Thanks @QMalcolm ! |
I want to put dbt in a dagster environment where we're using pydantic 2.0. Can't do that until this is resolved. |
Curious to hear on the status of this work as well, and if there's anything we can do to help! |
Looking forward to this dev ! |
Hoooboy do I need to pay more attention to my github notifications 😅 We absolutely want to get dbt-semantic-intefaces migrated to Pydantic 2. However, we don't currently have a good idea of where that falls on our timeline. That said, we'd absolutely welcome community contributions to make it happen. |
Thanks for clarifying that @QMalcolm. I gave it a quick attempt and didn't get too far given my other time constraints. For anyone else who might want to try a community contribution I can say that getting the dev environment up and running with tests was pretty smooth & expect a bit more work than you think :). |
Hi, I wanted to help out, so I had a look. The change does not seem straight forward at all. @QMalcolm I tried to follow the same approach as you and started from your branch on my own fork. I did the following:
A lot of tests are not passing. I digged into some of them. One of the main issue is that the deprecation of Another issue with is that for some reason, validation fails on
Any guidance for a clue? |
PR done. All tests passing. 😉 |
Bit of an update 😅 This is a copy and paste of my comment on the PR
|
Looking forward to this change - the associated PR looks great. In case its helpful to have examples where this is problematic, Airflow 2.7.0 onwards uses pydantic 2.4.2 in its constraint files. https://raw.githubusercontent.com/apache/airflow/constraints-2.7.2/constraints-3.11.txt |
With the merging of #238, pydantic 2 support will soon, but not immediately, available and transitively in |
Is this your first time submitting a feature request?
Describe the feature
This package currently blocks users of dbt-core from upgrading Python projects to pydantic 2.0.0 which has the well-documented performance improvements.
Describe alternatives you've considered
No response
Who will this benefit?
No response
Are you interested in contributing this feature?
No response
Anything else?
No response
The text was updated successfully, but these errors were encountered: