Delta Lake
Delta Lake Data Connector Documentation
Delta Lake data connector connector enables SQL queries from Delta Lake tables.
Configuration
from
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
name
The dataset name. This will be used as the table name within Spice.
Example:
params
params
Use the secret replacement syntax to reference a secret, e.g. ${secrets:aws_access_key_id}
.
client_timeout
Optional. Specifies timeout for object store operations. Default value is 30s
. E.g. client_timeout: 60s
Delta Lake object store parameters
AWS S3
delta_lake_aws_region
Optional. The AWS region for the S3 object store. E.g. us-west-2
.
delta_lake_aws_access_key_id
The access key ID for the S3 object store.
delta_lake_aws_secret_access_key
The secret access key for the S3 object store.
delta_lake_aws_endpoint
Optional. The endpoint for the S3 object store. E.g. s3.us-west-2.amazonaws.com
.
Azure Blob
Note One of the following auth values must be provided for Azure Blob:
delta_lake_azure_storage_account_key
,delta_lake_azure_storage_client_id
andazure_storage_client_secret
, ordelta_lake_azure_storage_sas_key
.
delta_lake_azure_storage_account_name
The Azure Storage account name.
delta_lake_azure_storage_account_key
The Azure Storage master key for accessing the storage account.
delta_lake_azure_storage_client_id
The service principal client id for accessing the storage account.
delta_lake_azure_storage_client_secret
The service principal client secret for accessing the storage account.
delta_lake_azure_storage_sas_key
The shared access signature key for accessing the storage account.
delta_lake_azure_storage_endpoint
Optional. The endpoint for the Azure Blob storage account.
Google Storage (GCS)
google_service_account
Filesystem path to the Google service account JSON key file.
Examples
Delta Lake + Local
Delta Lake + S3
Delta Lake + Azure Blob
Delta Lake + Google Storage
Types
The table below shows the Delta Lake data types supported, along with the type mapping to Apache Arrow types in Spice.
String
Utf8
Long
Int64
Integer
Int32
Short
Int16
Byte
Int8
Float
Float32
Double
Float64
Boolean
Boolean
Binary
Binary
Date
Date32
Timestamp
Timestamp(Microsecond, Some("UTC"))
TimestampNtz
Timestamp(Microsecond, None)
Decimal
Decimal128
Array
List
Struct
Struct
Map
Map
Limitations
Delta Lake connector does not support reading Delta tables with the
V2Checkpoint
feature enabled. To use the Delta Lake connector with such tables, drop theV2Checkpoint
feature by executing the following command:For more details on dropping Delta table features, refer to the official documentation: Drop Delta table features
Last updated
Was this helpful?