-
Notifications
You must be signed in to change notification settings - Fork 313
first pass sql model #397
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
first pass sql model #397
Conversation
docs/concepts/models/sql_models.md
Outdated
| ON employees.id = countries.employee_id | ||
| ``` | ||
|
|
||
| SQLMesh will detect that the model depends on both employees and countries. When evaluating this model, it will ensure that employees and countries will be evaluated first. External dependencies that are not defined in SQLMesh are also supported. SQLMesh can either depend on them via a schedule or through signals if you are using [Airflow](../../../integrations/airflow). |
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.
What did you mean here by depend on them via a schedule? Also we haven't really implemented the ability to depend on an external model via. signal in Airflow.
docs/concepts/models/sql_models.md
Outdated
| Additionally you don't have to worry about things like trailing commas as SQLGlot will remove them at parse time. | ||
|
|
||
| ## Macros | ||
| Although SQL is very powerful, it is often required to run SQL queries with dynamic components like date filters. Additionally, large queries can be difficult to read and maintain, so having macros is powerful tool to address these advanced use cases. |
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.
Although SQL is very powerful, it is often required to run SQL queries with dynamic components like date filters.. I think there is a missing sentence after this. You are referencing variables here but then don't explain what a variable is.
Co-authored-by: Ryan Eakman <6326532+eakmanrq@users.noreply.github.com>
No description provided.