# Delta Lake

> Trino catalogs for Delta Lake tables, backed by a Hive metastore and stored in S3 or HDFS, with the Stackable operator for Trino.

[Delta Lake](https://delta.io/) is an open-source storage framework that enables building a Lakehouse architecture with support for multiple compute engines. It depends on a Hive metastore being present and makes use of the same metastore ConfigMap used by the Hive connector.

## Example Delta Lake catalog configuration

```yaml
apiVersion: trino.stackable.tech/v1alpha2
kind: TrinoCatalog
metadata:
  # The name of the catalog as it will appear in Trino
  name: delta
  labels:
    trino: simple-trino
spec:
  connector:
    # Specify deltaLake here when defining a Delta Lake catalog
    deltaLake:
      metastore:
        configMap: simple-hive
      s3:
        inline:
          host: test-minio
          port: 9000
          accessStyle: Path
          credentials:
            secretClass: minio-credentials
          # TLS is recommended for S3 connections, see the note below
          tls:
            verification:
              server:
                caCert:
                  secretClass: minio-tls-certificates
```

> **Note:** The `tls` section is optional but recommended, see [Connecting Trino to S3](https://docs.stackable.tech/home/stable/trino/usage-guide/s3/index.md).

## Connect to S3 store or HDFS

The Delta Lake connector connects to S3 or HDFS in the same way the [Apache Hive](https://docs.stackable.tech/home/stable/trino/usage-guide/catalogs/hive/index.md) connector does. Refer to that documentation for access configuration.
