-
Notifications
You must be signed in to change notification settings - Fork 223
Docs: add interactive init to quickstart docs #4736
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
base: main
Are you sure you want to change the base?
Conversation
79adfb7
to
bd848d3
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.
After SQLMesh creates a plan, it summarizes the breaking and non-breaking changes so you can understand what will happen if you apply the plan. It will prompt you to "backfill" data to apply the plan - in this context, backfill is a generic term for updating or adding to a table's data (including an initial load or full refresh). | ||
Other changes, like adding a new column to a model in `dev`, are non-breaking because all the existing data in `prod` are still valid to use - only new data must be added to align the environments. | ||
|
||
After SQLMesh creates a plan, it summarizes the breaking and non-breaking changes so you can understand what will happen if you apply the plan. It will prompt you to "backfill" data to apply the plan. (In this context, backfill is a generic term for updating or adding to a table's data, including an initial load or full refresh.) | ||
|
||
The first SQLMesh plan must execute every model to populate the production environment. Running `sqlmesh plan` will generate the plan and the following output: | ||
|
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.
Add in a toggle section for sqlmesh plan --explain
to show people they can see in plain terms what exact SQL will run with an example output.
0.05s | ||
[1/1] sqlmesh_example.seed_model [insert seed file] 0.02s | ||
[1/1] sqlmesh_example.incremental_model [insert 2020-01-01 -2025-04-17] 0.03s | ||
[1/1] sqlmesh_example.full_model [full refresh, audits ✔1] 0.05s |
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.
After the terminal output example, include a screenshot of the tables/schemas in duckdb. You can screenshot what you see in the duckdb cli output here.
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.
Make it easy for people to visualize the VDEs
|
||
SQLMesh's core commands have multiple options that alter their behavior. Some of those options streamline the SQLMesh `plan` workflow and CLI output. | ||
|
||
If you prefer a streamlined workflow, choose the `FLOW` CLI mode to automatically include those options in your project configuration file. If you prefer to see all the output SQLMesh provides, choose `DEFAULT` mode. |
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.
If you prefer a streamlined workflow, choose the `FLOW` CLI mode to automatically include those options in your project configuration file. If you prefer to see all the output SQLMesh provides, choose `DEFAULT` mode. | |
If you prefer a streamlined workflow (no prompts, no diff previews, auto-apply changes), choose the `FLOW` CLI mode to automatically include those options in your project configuration file. If you prefer to see all the output SQLMesh provides, choose `DEFAULT` mode. |
• Docs: https://sqlmesh.readthedocs.io | ||
• Slack: https://www.tobikodata.com/slack | ||
• GitHub: https://github.com/TobikoData/sqlmesh/issues | ||
``` | ||
|
||
??? info "Learn more about the project's configuration" |
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.
??? info "Learn more about the project's configuration" | |
??? info "Learn more about the project's configuration: `config.yaml`" |
@@ -9,20 +9,20 @@ SQLMesh supports integrations with the following tools: | |||
* [Kestra](https://kestra.io/plugins/plugin-sqlmesh/tasks/cli/io.kestra.plugin.sqlmesh.cli.sqlmeshcli) | |||
|
|||
## Execution engines | |||
SQLMesh supports the following execution engines for running SQLMesh projects: | |||
SQLMesh supports the following execution engines for running SQLMesh projects (engine `type` in parentheses): |
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.
SQLMesh supports the following execution engines for running SQLMesh projects (engine `type` in parentheses): | |
SQLMesh supports the following execution engines for running SQLMesh projects (engine `type` in parentheses - example usage: `pip install "sqlmesh[databricks]"`): |
No description provided.