-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Add brand new Dagster project example to dbt quickstart #21816
Add brand new Dagster project example to dbt quickstart #21816
Conversation
This stack of pull requests is managed by Graphite. Learn more about stacking. Join @maximearmstrong and the rest of your teammates on Graphite |
Deploy preview for dagster-docs ready! Preview available at https://dagster-docs-i86wexok8-elementl.vercel.app Direct link to changed pages: |
54ed678
to
88b03c6
Compare
095a31f
to
5ff29d3
Compare
5ff29d3
to
0ddd004
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We have the opportunity to simplify the dagster-dbt project scaffold
CLI by making --project-name
an optional parameter. We should do this to simplify the instructions a bit.
|
||
You can create a Dagster project that wraps your dbt project by using the `dagster-dbt` command line interface. | ||
|
||
To use the command, you'll need to provide 2 options - `--project-name`, the name of your Dagster project to be created, and `--dbt-project-dir`, the path to your dbt project. In our example, our Dagster project is named `my-dagster-project`and the relative path to our dbt project is `./my-dbt-project`, meaning that we are in the directory where `my-dbt-project` is located. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can change this so that the user only has to provide one parameter --dbt-project-dir
.
We can do this by reading the user's dbt_project.yml
and using the current name as the project name. Maybe event append _dagster
to that dbt project name,
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Currently, if we don't provide the --project-name
parameter, the user is prompted for the project name. Should we update this behaviour?
If so, could we do it in another PR? My goal here was to make the command as explicit as possible to make it easier for the user to understand.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah we should do it in another PR.
<TabItem name="Option 1: Create a brand new Dagster project"> | ||
|
||
### Option 1: Create a brand new Dagster project |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just to remove a word
<TabItem name="Option 1: Create a brand new Dagster project"> | |
### Option 1: Create a brand new Dagster project | |
<TabItem name="Option 1: Create a new Dagster project"> | |
### Option 1: Create a new Dagster project |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done in 6e2bb9f
dagster-dbt project scaffold --project-name my-dagster-project --dbt-project-dir ./my-dbt-project --use-experimental-dbt-project | ||
``` | ||
|
||
This creates a directory called `my-dagster-project/` inside the current directory. The `my-dagster-project/` directory contains a set of files that define a Dagster project. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: let's be explicit about what's happening
This creates a directory called `my-dagster-project/` inside the current directory. The `my-dagster-project/` directory contains a set of files that define a Dagster project. | |
This command creates a new directory called `my-dagster-project/` inside the current directory. The new `my-dagster-project/` directory will contain a set of files that define a Dagster project to load the dbt project provided in `./my-dbt-project`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done in 6e2bb9f
@@ -41,6 +41,28 @@ The `dagster-dbt` library installs both `dbt-core` and `dagster` as dependencies | |||
|
|||
--- | |||
|
|||
## Wrap your dbt project with Dagster |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I know we use the "wrap" lingo here, but maybe we should consolidate on "load"
## Wrap your dbt project with Dagster | |
## Load your dbt project in Dagster |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done in 6e2bb9f
c8ecf81
to
f8f6482
Compare
0ddd004
to
6e2bb9f
Compare
6e2bb9f
to
b75e81f
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One comment, but can land after that!
|
||
You can create a Dagster project that wraps your dbt project by using the `dagster-dbt` command line interface. | ||
|
||
To use the command, you'll need to provide 2 options - `--project-name`, the name of your Dagster project to be created, and `--dbt-project-dir`, the path to your dbt project. In our example, our Dagster project is named `my_dagster_project`and the relative path to our dbt project is `./my_dbt_project`, meaning that we are in the directory where `my_dbt_project` is located. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just to explicitly call out the two options. Also nit: should spell out numbers.
To use the command, you'll need to provide 2 options - `--project-name`, the name of your Dagster project to be created, and `--dbt-project-dir`, the path to your dbt project. In our example, our Dagster project is named `my_dagster_project`and the relative path to our dbt project is `./my_dbt_project`, meaning that we are in the directory where `my_dbt_project` is located. | |
To use the command, you'll need to provide two options: | |
- `--project-name`, the name of your Dagster project to be created, and | |
- `--dbt-project-dir`, the path to your dbt project. | |
In our example, our Dagster project is named `my_dagster_project`and the relative path to our dbt project is `./my_dbt_project`, meaning that we are in the directory where `my_dbt_project` is located. |
b6b450b
to
170b531
Compare
b75e81f
to
ca9f008
Compare
927bbc5
into
maxime/ds-169/add-full-copy-pasteable-example-to-dbt-integrate-page
## Summary & Motivation This PR updates the quickstart example for dbt + Dagster - it adds the steps to create a brand new Dagster project using the scaffold to wrap a dbt project. This work is the continuation of #21240 ## How I Tested These Changes BK + local ``` make mdx-full-format make next-watch-build ```
## Summary & Motivation This PR updates the quickstart example for dbt + Dagster - it adds the steps to update an existing Dagster project to wrap a dbt project. This work is the continuation of #21240 and #21816 ## How I Tested These Changes BK + local ``` make mdx-full-format make next-watch-build ```
## Summary & Motivation This PR updates the quickstart example for dbt + Dagster - it adds the steps to create a brand new Dagster project using the scaffold to wrap a dbt project. This work is the continuation of #21240 ## How I Tested These Changes BK + local ``` make mdx-full-format make next-watch-build ```
Summary & Motivation
This PR updates the quickstart example for dbt + Dagster - it adds the steps to create a brand new Dagster project using the scaffold to wrap a dbt project.
This work is the continuation of #21240
How I Tested These Changes
BK
+
local