-
Notifications
You must be signed in to change notification settings - Fork 182
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
Compiled sql not being written in target path of dbt project directory #851
Comments
🤖 Based on the information you've provided and the context from the Cosmos repository, the However, if the
If none of these solutions work, you may need to manually create the Regarding your question about how Cosmos handles the If you have any additional information or context that could help me better understand your issue, please provide it. I'm here to help! Sources
|
@EugenioG2021 Cosmos currently creates temporary directories to export the target_directory. This was done intentionally since other users faced issues with read-only file systems. That said, I agree that we should allow users to specify the target directory if they want to control this. Would you be interested in contributing this feature? |
hi @EugenioG2021 , we recently merged PR #1389, which introduces minor changes to the existing callback functionality and will be included in the upcoming Cosmos 1.8.0 release. To allow users to try out these changes ahead of the official release, we have prepared an alpha release. You can install it using the following link: astronomer-cosmos 1.8.0a3. PR #1389 also provides examples showcasing how to use this callback functionality. For additional guidance, refer to the documentation on leveraging callbacks: Callback Configuration. The helper functions demonstrated in the examples can be found here: cosmos/io.py. However, you are not limited to these; you can create your own custom callback functions using these examples as a reference and pass them via the callback argument. We would greatly appreciate any feedback you have after testing this alpha release! |
I have ran a model in airflow, and it says the compiled sql can be found at some target/{some_subdirectory} path. However, I am not seeing any "target" directory created in neither of these places:
1.In the project directory (
dbt_project_path
argument ofProjectConfig
on my DAG python file)2. In airflow's home directory, nor inside the
dags
directory3. In the directory I specified on the
ExecutionConfig
with thedbt_executable_path
This is my DbtTaskGroup which I use in the airflow DAG :
On the other hand, my dbt_project.yml is as follows:
My project scafolding starting at airflow's Directory is:
When airflow dag's run and I had an error on my sql of a model called
intermediate.int_unite_factevents_pstage
, it says my compiled sql should be atcompiled Code at target/run/data_eng_dbt/models/intermediate/placement_id_match/int_unite_factevents_pstage.sql'
However, I cannot find that
target/run
directory anywhere, where should it be? And does thedbt_project.yml
comes into play here? Because I did specified the target-path there.I also have no system environment variables for dbt_target as mentioned here and I run that DbtTaskGroup instance by just putting it inside a standard airflow dag
The text was updated successfully, but these errors were encountered: