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
Is your feature request related to a problem? Please describe.
I need to install feast with Pydantic 2.0 support, but it's pinned to pydantic>=1,<2
Describe the solution you'd like
Update dependency to pydantic>=2
Pydantic v2 offers improved performance (2x-50x faster), which can contribute to the overall efficiency of Feast.
Updating Pydantic to version 2 will be a valuable enhancement to the feast, and I am willing to contribute to this update if needed. I look forward to hearing your thoughts on this proposal and am open to discussing it further.
Reacted by GytisBraz, Vytautas Strimaitis, Shuchu Han, Daniel Salvador, Higuchi kokoro, Sam Rausser, Sonja Li, Bennett Andrews, Ryan Whitten, Sebastian Scherer and 5 more
The migration mostly relates to imports and validation function annotations so it's not that scary.
What is more worrying is that it also requires updating great-expectations to 0.18.1 and fastapi to 0.103.0 .
I'll keep an eye on the Pydantic's bug you mentioned. Once they fixed it, maybe we can discuss the upgrading of Pydantic from v1 to v2. At the same time, let me check the "great-expectations" and "fastapi" upgrades.
Just a progress update:
1, (solved) I have a branch in my own account with Pydantic version equal to the latest one (v2.6). Right now, only one unit test failure left.
= short test summary info =
FAILED sdk/python/tests/unit/cli/test_cli.py::test_3rd_party_registry_store_with_fs_yaml_override_by_env_var - AssertionError: Expected <1> to be equal to <0>, but was not.
= 1 failed, 240 passed, 25 warnings in 51.35s =
2, (solved) There is a "mypy" issue here as I also need to update the version to "mypy~=1.1.1" (as required by Pydantic). it will create 120+ mypy lint check errors that need to be fixed. (It will be a tedious grammar change but I just need more time :))
3, Hope there will be not too many failures while doing the integration test. //pray
Folks, the Pydantic V2 is in the master branch. I configured the setup.py as "pydantic>=2.0.0". Especially want to thank Harry @sudohainguyen for spending time to review it!
Activity
shuchu commentedon Nov 7, 2023
Here is a list of Python files that need to do transformation :
pydantic/pydantic#619 or a more
shuchu commentedon Nov 7, 2023
A single PR to modify all these files (and with proper testing) seems a little bit scary to me. Any suggestions?
One possible suggestion from Pydantic's doc (https://docs.pydantic.dev/latest/migration/) is:
from pydantic.v1 import BaseModelmjurkus commentedon Nov 7, 2023
The migration mostly relates to imports and validation function annotations so it's not that scary.
What is more worrying is that it also requires updating
great-expectationsto0.18.1andfastapito0.103.0.mjurkus commentedon Nov 7, 2023
To start the migration, this needs to be fixed and released pydantic/pydantic#7873
shuchu commentedon Nov 8, 2023
I'll keep an eye on the Pydantic's bug you mentioned. Once they fixed it, maybe we can discuss the upgrading of Pydantic from v1 to v2. At the same time, let me check the "great-expectations" and "fastapi" upgrades.
shuchu commentedon Nov 21, 2023
I'm going to work on this issue.
TomSteenbergen commentedon Feb 5, 2024
Is there any update on Pydantic 2.0 support?
shuchu commentedon Feb 5, 2024
sorry for the late. I'm still working on it. please wait for few days :)
shuchu commentedon Feb 6, 2024
Just a progress update:
1, (solved) I have a branch in my own account with Pydantic version equal to the latest one (v2.6). Right now, only one unit test failure left.
2, (solved) There is a "mypy" issue here as I also need to update the version to "mypy~=1.1.1" (as required by Pydantic). it will create 120+ mypy lint check errors that need to be fixed. (It will be a tedious grammar change but I just need more time :))
3, Hope there will be not too many failures while doing the integration test. //pray
shuchu commentedon Feb 8, 2024
My friends, the PR is here: #3942
I humbly ask you guys to review my PR if you have time, since this PR changes many files from the codebase.
shuchu commentedon Feb 15, 2024
Folks, the Pydantic V2 is in the master branch. I configured the setup.py as "pydantic>=2.0.0". Especially want to thank Harry @sudohainguyen for spending time to review it!
Enjoy!