Skip to content

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

treysp
Copy link
Contributor

@treysp treysp commented Jun 13, 2025

No description provided.

@treysp treysp force-pushed the trey/quickstart-init-update branch from 79adfb7 to bd848d3 Compare June 18, 2025 17:57
@treysp treysp marked this pull request as ready for review June 18, 2025 17:58
Copy link
Contributor

@sungchun12 sungchun12 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overall good, main thing is to add the --explain section

we need to do something about this video quickstart as it's outdated, but we can tackle that in another PR.

image

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:

Copy link
Contributor

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
Copy link
Contributor

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.

Copy link
Contributor

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.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
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"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
??? 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):
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
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]"`):

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants