Skip to content

Commit e3827df

Browse files
authored
Merge branch 'main' into chore/update-docs-to-match-dbt-features
2 parents 6708788 + b2fa0a6 commit e3827df

19 files changed

Lines changed: 167 additions & 28 deletions

File tree

.github/workflows/pr.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -457,7 +457,7 @@ jobs:
457457
strategy:
458458
fail-fast: false
459459
matrix:
460-
dbt-version: ['1.3', '1.4', '1.5', '1.6', '1.7', '1.8', '1.9', '1.10']
460+
dbt-version: ['1.3', '1.4', '1.5', '1.6', '1.7', '1.8', '1.9', '1.10', '1.11']
461461
steps:
462462
- uses: actions/checkout@v7
463463
- name: Set up Python

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ install-dev-dbt-%:
3333
echo "Installing dbt version: $$version"; \
3434
cp pyproject.toml pyproject.toml.backup; \
3535
$(SED_INPLACE) 's/"pydantic>=2.0.0"/"pydantic"/g' pyproject.toml; \
36-
if [ "$$version" = "1.10.0" ]; then \
37-
echo "Applying special handling for dbt 1.10.0"; \
36+
if [ "$$version" = "1.10.0" ] || [ "$$version" = "1.11.0" ]; then \
37+
echo "Applying special handling for dbt $$version"; \
3838
$(SED_INPLACE) -E 's/"(dbt-core)[^"]*"/"\1~='"$$version"'"/g' pyproject.toml; \
3939
$(SED_INPLACE) -E 's/"(dbt-(bigquery|duckdb|snowflake|athena-community|clickhouse|redshift|trino))[^"]*"/"\1"/g' pyproject.toml; \
4040
$(SED_INPLACE) -E 's/"(dbt-databricks)[^"]*"/"\1~='"$$version"'"/g' pyproject.toml; \

docs/concepts/models/overview.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,7 @@ This table lists each engine's support for `TABLE` and `VIEW` object comments:
190190
| Redshift | Y | N |
191191
| Snowflake | Y | Y |
192192
| Spark | Y | Y |
193+
| StarRocks | Y | Y |
193194
| Trino | Y | Y |
194195

195196

docs/guides/configuration.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -929,19 +929,22 @@ Example snowflake connection configuration:
929929
These pages describe the connection configuration options for each execution engine.
930930

931931
* [Athena](../integrations/engines/athena.md)
932+
* [Azure SQL](../integrations/engines/azuresql.md)
932933
* [BigQuery](../integrations/engines/bigquery.md)
934+
* [ClickHouse](../integrations/engines/clickhouse.md)
933935
* [Databricks](../integrations/engines/databricks.md)
934936
* [DuckDB](../integrations/engines/duckdb.md)
935937
* [Fabric](../integrations/engines/fabric.md)
936938
* [MotherDuck](../integrations/engines/motherduck.md)
937-
* [MySQL](../integrations/engines/mysql.md)
938939
* [MSSQL](../integrations/engines/mssql.md)
940+
* [MySQL](../integrations/engines/mysql.md)
939941
* [Postgres](../integrations/engines/postgres.md)
940942
* [GCP Postgres](../integrations/engines/gcp-postgres.md)
941943
* [Redshift](../integrations/engines/redshift.md)
944+
* [RisingWave](../integrations/engines/risingwave.md)
942945
* [Snowflake](../integrations/engines/snowflake.md)
943-
* [StarRocks](../integrations/engines/starrocks.md)
944946
* [Spark](../integrations/engines/spark.md)
947+
* [StarRocks](../integrations/engines/starrocks.md)
945948
* [Trino](../integrations/engines/trino.md)
946949

947950
#### State connection

docs/guides/connections.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,15 +79,20 @@ default_gateway: local_db
7979

8080
## Supported engines
8181

82+
* [Athena](../integrations/engines/athena.md)
83+
* [Azure SQL](../integrations/engines/azuresql.md)
8284
* [BigQuery](../integrations/engines/bigquery.md)
85+
* [ClickHouse](../integrations/engines/clickhouse.md)
8386
* [Databricks](../integrations/engines/databricks.md)
8487
* [DuckDB](../integrations/engines/duckdb.md)
88+
* [Fabric](../integrations/engines/fabric.md)
8589
* [MotherDuck](../integrations/engines/motherduck.md)
86-
* [MySQL](../integrations/engines/mysql.md)
8790
* [MSSQL](../integrations/engines/mssql.md)
91+
* [MySQL](../integrations/engines/mysql.md)
8892
* [Postgres](../integrations/engines/postgres.md)
8993
* [GCP Postgres](../integrations/engines/gcp-postgres.md)
9094
* [Redshift](../integrations/engines/redshift.md)
95+
* [RisingWave](../integrations/engines/risingwave.md)
9196
* [Snowflake](../integrations/engines/snowflake.md)
9297
* [Spark](../integrations/engines/spark.md)
9398
* [StarRocks](../integrations/engines/starrocks.md)

docs/installation.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,13 +54,16 @@ Other extras are required to use specific SQL engines, like Bigquery or Postgres
5454
| Bigquery | `pip install "sqlmesh[bigquery]"` |
5555
| ClickHouse | `pip install "sqlmesh[clickhouse]"` |
5656
| Databricks | `pip install "sqlmesh[databricks]"` |
57+
| Fabric | `pip install "sqlmesh[fabric]"` |
5758
| GCP Postgres | `pip install "sqlmesh[gcppostgres]"` |
5859
| MS SQL Server | `pip install "sqlmesh[mssql]"` |
60+
| MotherDuck | `pip install "sqlmesh[motherduck]"` |
5961
| MySQL | `pip install "sqlmesh[mysql]"` |
6062
| Postgres | `pip install "sqlmesh[postgres]"` |
6163
| Redshift | `pip install "sqlmesh[redshift]"` |
6264
| RisingWave | `pip install "sqlmesh[risingwave]"` |
6365
| Snowflake | `pip install "sqlmesh[snowflake]"` |
66+
| StarRocks | `pip install "sqlmesh[starrocks]"` |
6467
| Trino | `pip install "sqlmesh[trino]"` |
6568

6669
Multiple extras can be installed at once, as in `pip install "sqlmesh[github,slack]"`.

docs/quickstart/cli.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,8 @@ Choose your SQL engine:
116116
[14] MySQL
117117
[15] Athena
118118
[16] RisingWave
119+
[17] Fabric
120+
[18] StarRocks
119121

120122
Enter a number: 1
121123
```

docs/reference/configuration.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,18 +218,22 @@ Most parameters are specific to the connection engine `type` - see [below](#engi
218218
These pages describe the connection configuration options for each execution engine.
219219

220220
* [Athena](../integrations/engines/athena.md)
221+
* [Azure SQL](../integrations/engines/azuresql.md)
221222
* [BigQuery](../integrations/engines/bigquery.md)
222223
* [ClickHouse](../integrations/engines/clickhouse.md)
223224
* [Databricks](../integrations/engines/databricks.md)
224225
* [DuckDB](../integrations/engines/duckdb.md)
226+
* [Fabric](../integrations/engines/fabric.md)
225227
* [MotherDuck](../integrations/engines/motherduck.md)
226-
* [MySQL](../integrations/engines/mysql.md)
227228
* [MSSQL](../integrations/engines/mssql.md)
229+
* [MySQL](../integrations/engines/mysql.md)
228230
* [Postgres](../integrations/engines/postgres.md)
229231
* [GCP Postgres](../integrations/engines/gcp-postgres.md)
230232
* [Redshift](../integrations/engines/redshift.md)
233+
* [RisingWave](../integrations/engines/risingwave.md)
231234
* [Snowflake](../integrations/engines/snowflake.md)
232235
* [Spark](../integrations/engines/spark.md)
236+
* [StarRocks](../integrations/engines/starrocks.md)
233237
* [Trino](../integrations/engines/trino.md)
234238

235239
### Scheduler

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ dev = [
7878
"google-auth",
7979
"google-cloud-bigquery",
8080
"google-cloud-bigquery-storage",
81-
"httpx",
81+
"httpx2",
8282
"mypy~=1.13.0",
8383
"numpy",
8484
"pandas-stubs",

sqlmesh/core/context.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1338,7 +1338,8 @@ def format(
13381338
): # introduced to satisfy type checker as still want to pull filter out as many targets as possible before loop
13391339
continue
13401340

1341-
with open(target._path, "r+", encoding="utf-8") as file:
1341+
mode = "r" if check else "r+"
1342+
with open(target._path, mode, encoding="utf-8") as file:
13421343
before = file.read()
13431344

13441345
after = self._format(

0 commit comments

Comments
 (0)