Delta Lake Catalog
Run catalog SQL with a warehouse SQL user that can manage catalogs and access the source. Ensure network access from the warehouse to metadata, storage, and source endpoints. For connector deployment, host files, JVM settings, or service configuration changes, contact VeloDB Cloud support.
Note:
This integration is experimental. Confirm connector availability and the required endpoint and credential configuration with VeloDB Cloud support before using these examples.
Overview
Delta Lake Catalog uses the Trino Connector compatibility framework with Trino Delta Lake Connector to access Delta Lake tables.
Note:
- This connector is experimental.
- This feature does not depend on a Trino cluster environment, it only uses the Trino compatibility plugin.
Use cases
| Scenario | Support Status |
|---|---|
| Data Integration | Read Delta Lake data and write to warehouse tables |
| Data Write-back | Not supported |
Version compatibility
- Warehouse: Confirm connector availability with VeloDB Cloud support.
- Trino Connector Version: 435
- Delta Lake Version: For supported versions, please refer to Trino Documentation
Quick start
1. prepare the managed connector
Contact VeloDB Cloud support to confirm this experimental connector's availability, plugin version, source credentials, and network access for the warehouse. Plugin installation and service restarts are managed operations.
2. create a catalog
Basic Configuration
CREATE CATALOG delta_lake_catalog PROPERTIES (
'type' = 'trino-connector',
'trino.connector.name' = 'delta_lake',
'trino.hive.metastore' = 'thrift',
'trino.hive.metastore.uri' = 'thrift://ip:port',
'trino.hive.config.resources' = '/path/to/core-site.xml,/path/to/hdfs-site.xml'
);
Configuration Description
trino.hive.metastore: Metadata service type, supportsthrift(Hive Metastore), etc.trino.hive.metastore.uri: Hive Metastore service addresstrino.hive.config.resources: Hadoop configuration file path, multiple files separated by commas
For more configuration options, please refer to the "Configuration Description" section below or Trino Official Documentation.
3. query data
After creating the Catalog, you can query Delta Lake table data using one of the following three methods:
-- Method 1: Switch to Catalog then query
SWITCH delta_lake_catalog;
USE delta_lake_db;
SELECT * FROM delta_lake_tbl LIMIT 10;
-- Method 2: Use two-level path
USE delta_lake_catalog.delta_lake_db;
SELECT * FROM delta_lake_tbl LIMIT 10;
-- Method 3: Use fully qualified name
SELECT * FROM delta_lake_catalog.delta_lake_db.delta_lake_tbl LIMIT 10;
Configuration description
Catalog configuration parameters
The basic syntax for creating a Delta Lake Catalog is as follows:
CREATE CATALOG [IF NOT EXISTS] catalog_name PROPERTIES (
'type' = 'trino-connector', -- Required, fixed value
'trino.connector.name' = 'delta_lake', -- Required, fixed value
{TrinoProperties}, -- Trino Connector related properties
{CommonProperties} -- Common properties
);
TrinoProperties parameters
TrinoProperties are used to configure Trino Delta Lake Connector specific properties, these properties are prefixed with trino.. Common parameters include:
| Parameter Name | Required | Default Value | Description |
|---|---|---|---|
trino.hive.metastore | Yes | - | Metadata service type, such as thrift |
trino.hive.metastore.uri | Yes | - | Hive Metastore service address |
trino.hive.config.resources | No | - | Hadoop configuration file path, multiple files separated by commas |
trino.delta.hide-non-delta-tables | No | false | Whether to hide non-Delta Lake tables |
For more Delta Lake Connector configuration parameters, please refer to Trino Official Documentation.
CommonProperties parameters
CommonProperties are used to configure common Catalog properties, such as metadata refresh policies, permission control, etc. For detailed information, please refer to the "Common Properties" section in Catalog Overview.
Data type mapping
When using Delta Lake Catalog, data types are mapped according to the following rules:
| Delta Lake Type | Trino Type | VeloDB Cloud Type | Notes |
|---|---|---|---|
| boolean | boolean | boolean | |
| int | int | int | |
| byte | tinyint | tinyint | |
| short | smallint | smallint | |
| long | bigint | bigint | |
| float | real | float | |
| double | double | double | |
| decimal(P, S) | decimal(P, S) | decimal(P, S) | |
| string | varchar | string | |
| binary | varbinary | string | |
| date | date | date | |
| timestamp_ntz | timestamp(N) | datetime(min(N, 6)) | Fractional precision is capped at 6. |
| timestamp | timestamp with time zone(N) | datetime(min(N, 6)) | Fractional precision is capped at 6; this connector maps the value to DATETIME, not TIMESTAMPTZ. |
| array | array | array | |
| map | map | map | |
| struct | row | struct |