dagster-dbt: DagsterInvariantViolationError
in dbt_assets
with valid manifest.json
#27192
Labels
type: bug
Something isn't working
What's the issue?
Summary
After upgrading from Dagster 1.9.6 to 1.9.7, the
dbt_assets
function fails with the error:dagster._core.errors.DagsterInvariantViolationError: Unexpected 'None' output value. If a 'None' value is intentional, set the output type to None by adding return type annotation '-> None'.
This issue does not occur with Dagster 1.9.6 or smaller version .
Dagster Version
Observed Behavior
The job fails immediately after yielding the first output from
dbt.cli(...).stream()
. TheSTEP_FAILURE
logs show that Dagster encounters aNone
value unexpectedly.Workaround
Reverting to Dagster 1.9.6 resolves the issue.
Environment Information
What did you expect to happen?
Expected Behavior
The job should run successfully without errors, as it does with Dagster 1.9.6.
How to reproduce?
Steps to Reproduce
dbt_assets
function with a validmanifest.json
:Dagster version
1.9.7
Deployment type
Local
Deployment details
No response
Additional information
Testing with GKE staging environment generates the same issue with version 1.9.7 for dagster-dbt= 0.25.7
Revert to 0.25.6 then it works in both local and GKE.
It seems there are some changes in dbt_assets decorator in version 1.9.7 which has caused this unexpectedly
Message from the maintainers
Impacted by this issue? Give it a 👍! We factor engagement into prioritization.
The text was updated successfully, but these errors were encountered: