Skip to content

Commit 6796377

Browse files
committed
Merge branch 'main' of https://github.com/TobikoData/sqlmesh into sung/init-refresh
2 parents 09224bf + b075a5a commit 6796377

File tree

22 files changed

+702
-266
lines changed

22 files changed

+702
-266
lines changed

docs/integrations/engines/duckdb.md

Lines changed: 34 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
| `extensions` | Extension to load into duckdb. Only autoloadable extensions are supported. | list | N |
1919
| `connector_config` | Configuration to pass into the duckdb connector. | dict | N |
2020
| `secrets` | Configuration for authenticating external sources (e.g., S3) using DuckDB secrets. | dict | N |
21+
| `filesystems` | Configuration for registering `fsspec` filesystems to the DuckDB connection. | dict | N |
2122

2223
#### DuckDB Catalogs Example
2324

@@ -256,4 +257,36 @@ After configuring the secrets, you can directly reference S3 paths in your catal
256257

257258
Refer to the official DuckDB documentation for the full list of [supported S3 secret parameters](https://duckdb.org/docs/stable/extensions/httpfs/s3api.html#overview-of-s3-secret-parameters) and for more information on the [Secrets Manager configuration](https://duckdb.org/docs/configuration/secrets_manager.html).
258259

259-
> Note: Loading credentials at runtime using `load_aws_credentials()` or similar deprecated functions may fail when using SQLMesh.
260+
> Note: Loading credentials at runtime using `load_aws_credentials()` or similar deprecated functions may fail when using SQLMesh.
261+
262+
##### File system configuration example for Microsoft Onelake
263+
264+
The `filesystems` accepts a list of file systems to register in the DuckDB connection. This is especially useful for Azure Storage Accounts, as it adds write support for DuckDB which is not natively supported by DuckDB (yet).
265+
266+
267+
=== "YAML"
268+
269+
```yaml linenums="1"
270+
gateways:
271+
ducklake:
272+
connection:
273+
type: duckdb
274+
catalogs:
275+
ducklake:
276+
type: ducklake
277+
path: myducklakecatalog.duckdb
278+
data_path: abfs://MyFabricWorkspace/MyFabricLakehouse.Lakehouse/Files/DuckLake.Files
279+
extensions:
280+
- ducklake
281+
filesystems:
282+
- fs: abfs
283+
account_name: onelake
284+
account_host: onelake.blob.fabric.microsoft.com
285+
client_id: {{ env_var('AZURE_CLIENT_ID') }}
286+
client_secret: {{ env_var('AZURE_CLIENT_SECRET') }}
287+
tenant_id: {{ env_var('AZURE_TENANT_ID') }}
288+
# anon: False # To use azure.identity.DefaultAzureCredential authentication
289+
```
290+
291+
292+
Refer to the documentation for `fsspec` [fsspec.filesystem](https://filesystem-spec.readthedocs.io/en/latest/api.html#fsspec.filesystem) and `adlfs` [adlfs.AzureBlobFileSystem](https://fsspec.github.io/adlfs/api/#api-reference) for a full list of storage options.

docs/integrations/overview.md

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -9,20 +9,20 @@ SQLMesh supports integrations with the following tools:
99
* [Kestra](https://kestra.io/plugins/plugin-sqlmesh/tasks/cli/io.kestra.plugin.sqlmesh.cli.sqlmeshcli)
1010

1111
## Execution engines
12-
SQLMesh supports the following execution engines for running SQLMesh projects:
12+
SQLMesh supports the following execution engines for running SQLMesh projects (engine `type` in parentheses - example usage: `pip install "sqlmesh[databricks]"`):
1313

14-
* [Athena](./engines/athena.md)
15-
* [Azure SQL](./engines/azuresql.md)
16-
* [BigQuery](./engines/bigquery.md)
17-
* [ClickHouse](./engines/clickhouse.md)
18-
* [Databricks](./engines/databricks.md)
19-
* [DuckDB](./engines/duckdb.md)
20-
* [MotherDuck](./engines/motherduck.md)
21-
* [MSSQL](./engines/mssql.md)
22-
* [MySQL](./engines/mysql.md)
23-
* [Postgres](./engines/postgres.md)
24-
* [GCP Postgres](./engines/gcp-postgres.md)
25-
* [Redshift](./engines/redshift.md)
26-
* [Snowflake](./engines/snowflake.md)
27-
* [Spark](./engines/spark.md)
28-
* [Trino](./engines/trino.md)
14+
* [Athena](./engines/athena.md) (athena)
15+
* [Azure SQL](./engines/azuresql.md) (azuresql)
16+
* [BigQuery](./engines/bigquery.md) (bigquery)
17+
* [ClickHouse](./engines/clickhouse.md) (clickhouse)
18+
* [Databricks](./engines/databricks.md) (databricks)
19+
* [DuckDB](./engines/duckdb.md) (duckdb)
20+
* [MotherDuck](./engines/motherduck.md) (motherduck)
21+
* [MSSQL](./engines/mssql.md) (mssql)
22+
* [MySQL](./engines/mysql.md) (mysql)
23+
* [Postgres](./engines/postgres.md) (postgres)
24+
* [GCP Postgres](./engines/gcp-postgres.md) (gcppostgres)
25+
* [Redshift](./engines/redshift.md) (redshift)
26+
* [Snowflake](./engines/snowflake.md) (snowflake)
27+
* [Spark](./engines/spark.md) (spark)
28+
* [Trino](./engines/trino.md) (trino)

0 commit comments

Comments
 (0)