Skip to content
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

Formatted dbt errors #27018

Open
Auric-Manteo opened this issue Jan 10, 2025 · 5 comments
Open

Formatted dbt errors #27018

Auric-Manteo opened this issue Jan 10, 2025 · 5 comments
Labels

Comments

@Auric-Manteo
Copy link

Auric-Manteo commented Jan 10, 2025

What's the use case?

If a dbt run fails I want to easily read the error.
The current error message is unformatted - it misses newlines as shown in the screenshot.
image

Ideas of implementation

Add the newlines to the error messages as you would see when running dbt in a command line.
+1 if we could get some highlighting on the actual error :D

Additional information

No response

Message from the maintainers

Impacted by this issue? Give it a 👍! We factor engagement into prioritization.

@garethbrickman
Copy link
Contributor

It's strange and unexpected that you would be encountering a pop-up error like that. What actions are you taking before it appears?

Typically when materializing dbt assets there will be a run in Dagster and the formatted dbt logs are available in the run's stdout tab for both successful and failed runs.

Screenshot 2025-01-13 at 09 54 58

@garethbrickman garethbrickman added the integration: dbt Related to dagster-dbt label Jan 13, 2025
@Auric-Manteo
Copy link
Author

Hi,
I don't see any details in stdout. The place I am looking at is the Events tab where you can click to see the entire message of the failed dbt command which then shows the popup I posted above.

@garethbrickman
Copy link
Contributor

Do you still not see any details if you select the step in the chart first?

@Auric-Manteo
Copy link
Author

Yes, this tab is always blank. I think it's due to the way dagster is set up.
I tried to dig into it before, but didn't get it to work. I hazily remember something about compute logs :D

Anyway, I guess technically that is another issue.

@garethbrickman
Copy link
Contributor

Yeah it's not typical for dbt CLI logs to be shown in the error as for you- typically our stack trace will refer to look in stderr precisely because they can be lengthy and can be formatted there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants