https://dagster.io/ logo
#dagster-support
Title
# dagster-support
w

wp

08/18/2022, 8:40 PM
Hi, new and not familiar with dagster but inherited the code so trying to make small changes. What do I need to read an output from a dbt macro? Currently I have something like this to run a dbt macro
Copy code
context.resources.dbt.cli(
        "run-operation my_macro",
        args={"type": value}
    )
Is there a specific way I need to return my result from dbt ? On my test run the response only contains stdout of the dbt run but no result
🤖 1
a

Adam Bloom

08/18/2022, 8:45 PM
Then you can
yield Output(cli_result)
- that'll create a
DbtOutput
for you
w

wp

08/18/2022, 8:47 PM
ty so much for this! I saw the DbtOutput class in the documentation but have no idea how to get to it! this seems like the direction i needed! thanks!
4 Views