You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/concepts/models/overview.md
+3Lines changed: 3 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -457,6 +457,9 @@ to `false` causes SQLMesh to disable query canonicalization & simplification. Th
457
457
### ignored_rules
458
458
: Specifies which linter rules should be ignored/excluded for this model.
459
459
460
+
### formatting
461
+
: Whether the model will be formatted. All models are formatted by default. Setting this to `false` causes SQLMesh to ignore this model during `sqlmesh format`.
462
+
460
463
## Incremental Model Properties
461
464
462
465
These properties can be specified in an incremental model's `kind` definition.
Copy file name to clipboardExpand all lines: docs/reference/model_configuration.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -40,7 +40,7 @@ Configuration options for SQLMesh model properties. Supported by all model kinds
40
40
|`gateway`| Specifies the gateway to use for the execution of this model. When not specified, the default gateway is used. | str | N |
41
41
|`optimize_query`| Whether the model's query should be optimized. This attribute is `true` by default. Setting it to `false` causes SQLMesh to disable query canonicalization & simplification. This should be turned off only if the optimized query leads to errors such as surpassing text limit. | bool | N |
42
42
|`ignored_rules`| A list of linter rule names (or "ALL") to be ignored/excluded for this model | str \| array[str]| N |
43
-
43
+
|`formatting`| Whether the model will be formatted. All models are formatted by default. Setting this to `false` causes SQLMesh to ignore this model during `sqlmesh format`. | bool | N |
44
44
### Model defaults
45
45
46
46
The SQLMesh project-level configuration must contain the `model_defaults` key and must specify a value for its `dialect` key. Other values are set automatically unless explicitly overridden in the model definition. Learn more about project-level configuration in the [configuration guide](../guides/configuration.md).
0 commit comments