-
Notifications
You must be signed in to change notification settings - Fork 121
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
dbt logs not getting generated for dbt commands in Databricks (dbt-databricks) #423
Comments
The error message indicates this is due to a non-posix compliant windows feature, likely an artefact of ADLS. When you run it locally are you also reading and writing from the same ADLS locations? If so, I would expect the error to reproduce locally as well. Either way, if this is to be resolved it needs to be handled by the dbt-core maintainers, rather than in this adapter. There have been significant changes to the event handling in dbt-core since version 1.3 (the latest release is 1.6). Your issue could resolve itself by upgrading to a newer version of dbt. Also keep in mind that the version you're using today will reach EOL in two months so it could make sense to upgrade anyway. |
@susodapop Yes, I'm writing to the same ADLS location from my local system as well. I won't disagree with you but as I had raised another issue already that on Databricks (which runs on Python 3.9.5), dbt-databricks 1.6 doesn't work yet and that's why I'm stuck with 1.3. |
@susodapop Hey, I think I know the root cause of this issue. Root Cause Analysis This is where the log file name is generated in dbt-core. Solution:
Possible Workarounds:
|
@susodapop Please let me know if this needs to be raised in dbt-core instead of here. |
Does this still happen on 1.6.x? |
@benc-db Yes, it's happening on both 1.3.x and 1.6.x |
@benc-db Since, the following package combinations are working on Databricks, this issue still occurs for both:
|
Thanks for the report 👍 |
@benc-db Sorry, not trying to push you on this. But any luck with this bug? |
dbt-databricks doesn't house the logic for writing the log files, dbt-core does. I haven't had an opportunity to try reproducing yet. |
@benc-db Yes, I thought so. In that case, let me raise it in dbt-core instead and close this one. |
Closing this issue since this comes under the scope of dbt-core. A new issue #8608 has been raised there. |
Describe the bug
I'm running a dbt project (which reads data from ADLS and writes back to ADLS) using a Databricks Workflow. When I configure log-path in dbt-project.yml to generate dbt logs in a specific DBFS location, dbt is generating logs only for dbt deps command and not for dbt debug, dbt run or dbt test etc.
Although it works fine while running it from local Python virtual environment (through VSCode).
Steps To Reproduce
Expected behavior
dbt should have generated logs for all the above mentioned commands in the ./logs/dbt.log file.
System information
Additional context
System information of the local machine where this works fine:
Error screenshots
The text was updated successfully, but these errors were encountered: