dbt CLI preview command #5418
Replies: 3 comments 4 replies
-
This would be really cool! I'm not sure if we want more dependencies on agate in the long term (I have seen its name spoken in anger on many issues over time), but disregarding that then using print_table might be a pretty straightforward way to achieve this |
Beta Was this translation helpful? Give feedback.
-
If anybody is wondering what the macro will look like here is an example,
Put this macro inside Here you can find few parameters |
Beta Was this translation helpful? Give feedback.
-
@TylerHillery thank you for proposing this idea and thanks to everyone who upvoted it! This was implemented in #7208, and it is part of the dbt Core 1.5 release scheduled for the end of this month. The 1st release candidate is out now for anyone who wants to try it out before then. We'd love to get your feedback and find any bugs before the final release! You can see the docs here: |
Beta Was this translation helpful? Give feedback.
-
Summary of the feature
Be able to run
dbt preview my_dbt_model
to show the results of the model in the terminal similar to the preview functionality in dbt cloud.Who will this benefit?
dbters who live in the CLI. Being able to preview the results of a model before it materializes in the database can be helpful to see if the output matches the user's expected behavior.
Are you interested in contributing to this feature?
I would really like to work on developing this if it garners enough interest.
Beta Was this translation helpful? Give feedback.
All reactions