-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
[BUG] Pydantic issue with airflow operator #6486
Comments
Hey @itaise! Thanks for raising this. We'll discuss this in the coming week. 🙇 |
@itaise Does the issue go away if you update |
Hi, |
@talagluck @Kilo59 I also copy and pasted the example dag from the provider package and got the same error. |
And our Airflow version is - apache-airflow==2.2.3 |
@itaise This is the pydantic PR that introduced that breaking line. What happens if you use an earlier version of pydantic that doesn't have that line? Maybe I'm a bit confused as to what's happening. Maybe double-check that you are using the intended virtual environment 🤷 ? Here's a related issue but this is because their |
Hi @Kilo59, thanks. |
Should the requirements file be more strict? |
@itaise This seems like it might be limited to I will try to re-create the error locally and raise the issue with the |
I've created a https://gist.github.com/Kilo59/b3ddf0135ab2f30cd83ac5daac657e59 With
Note @itaise can you take a look at the gist, and let me know if this is a faithful reproduction of the error you ran into? If not how could I update it? |
@itaise with today's release we will rely on pydantic v |
Ok, Thanks a lot! |
Hi,
We are using GreatExpectationsOperator, and when trying to upgrade great expectations version from 0.15.32 to 0.15.33, Airflow Dags are unable to load, and we are getting an ImportError. this also happen in every version up to the latest (0.15.36).
Trying to investigate - the row where it fails is this one in pydantic:
https://github.com/pydantic/pydantic/blob/main/pydantic/dataclasses.py#L52
Can you please help? thanks a lot!
Expected behavior
Dag should load properly
Environment
airflow-provider-great-expectations 0.2.2
great_expectations 0.15.36
pydantic - 1.10.2
The text was updated successfully, but these errors were encountered: