-
Notifications
You must be signed in to change notification settings - Fork 180
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] [1.4.0a] Seeds aren't working when partial parsing #880
Comments
Based on the error message you provided, it seems like the system is unable to locate the
If after these checks the issue persists, consider manually specifying the full path to the seed file in your environment or script to rule out path resolution issues, and ensure that your dbt project's structure is correctly set up to include the seeds directory in the expected location relative to the Regarding how Cosmos handles file path resolution, it creates symbolic links (symlinks) to the dbt project files and copies the I hope this helps! If you have any further questions or if the issue persists, please provide more details about your dbt project structure and how you're setting up and running your dbt and Airflow tasks. Sources
|
@dwreeves, thanks for pointing this out. Could you confirm which configurations you're using to run this? I'll reproduce and try to get it fixed it until tomorrow |
@tatiana Oh my god I figured it out and it's kind of funny and unfortunate. Basically, the partial parse saves the location of the seed file. So if you use the partial parse file, but run in a different directory (aka tmp/something), it checks for the seed file at the location it saw it at when the partial parsing occurred. There are a few potential avenues to solve the issue.
|
Actually let me think for a second about what the solution should be for the API. Setting the cwd as the AIRFLOW_HOME would be bad for users who run "cd dags/dbt && dbt compile", and I imagine some users would. A more generic "dbt_working_dir" kwarg could make more sense. |
In more positive news... this does confirm that I am successfully using the |
@dwreeves would it make more sense for us to solve the problem when we generate the |
Sigh, it's harder than I was hoping it would be. Here are the instructions I have on how to get partial parsing working in 1.4.0 (it's a draft snippet from a blog I'm writing on this and a few other Cosmos topics):
|
Can we release 1.4.0a2? I want to see if I would use the |
@dwreeves When you have a chance, please, could you confirm if this issue was solved in 1.4.0? |
Hi @dwreeves did you have a chance of checking if this still happens in 1.4.1? |
Not yet. I believe that adding |
Yep, it's good, the fix worked. Closing as completed. |
Not sure what's going on but after switching to 1.4.0a, my seeds stopped working.
Really weird.
There is a hint of what is going on. My dbt directory is
dags/dbt
, and relative to that it should be looking forseeds/us_states_seed.csv
. However, it seems to literally be looking fordags/dbt/seeds/us_states_seed.csv
inside thedags/dbt
folder, meaning it's looking fordags/dbt/dags/dbt/seeds/us_states_seed.csv
.I don't have time to look into this for the next few days, I'll see this weekend what's going on.
dbt-core version:
dbt-core==1.6.4
Astronomer Cosmos version:
astronomer-cosmos==1.4.0a1
Python:
Python 3.11.6
The text was updated successfully, but these errors were encountered: