Data Connectors

Delta Lake Data Connector

Query Delta Lake tables with SQL from a local path or from S3, MinIO, Azure Blob Storage, or Google Cloud Storage.

Delta Lake data connector enables SQL queries from Delta Lake tables.

datasets:
  - from: delta_lake:s3://my_bucket/path/to/s3/delta/table/
    name: my_delta_lake_table
    params:
      delta_lake_aws_access_key_id: ${secrets:aws_access_key_id}
      delta_lake_aws_secret_access_key: ${secrets:aws_secret_access_key}

Configuration

from

The from field for the Delta Lake connector takes the form of delta_lake:path where path is any supported path, either local or to a cloud storage location. See the examples section below.

name

The dataset name. This will be used as the table name within Spice.

Example:

datasets:
  - from: delta_lake:s3://my_bucket/path/to/s3/delta/table/
    name: cool_dataset
    params: ...
SELECT COUNT(*) FROM cool_dataset;
+----------+
| count(*) |
+----------+
| 6001215  |
+----------+

The dataset name cannot be a reserved keyword.

params

Use the secret replacement syntax to reference a secret, e.g. ${secrets:aws_access_key_id}.

Parameter NameDescription
client_timeoutOptional. Specifies timeout for object store operations. No default; uses the underlying HTTP client timeout when not set. E.g. client_timeout: 60s

Delta Lake object store parameters

AWS S3

Parameter NameDescription
delta_lake_aws_regionOptional. The AWS region for the S3 object store. E.g. us-west-2.
delta_lake_aws_access_key_idThe access key ID for the S3 object store.
delta_lake_aws_secret_access_keyThe secret access key for the S3 object store.
delta_lake_aws_session_tokenOptional. The AWS session token for S3 object store.
delta_lake_aws_endpointOptional. The endpoint for the S3 object store. E.g. s3.us-west-2.amazonaws.com.
delta_lake_aws_allow_httpOptional. Enables insecure HTTP connections to delta_lake_aws_endpoint. Defaults to false.

Azure Blob