Trino
Local/Built-in Scheduler
Engine Adapter Type: trino
NOTE: Trino may not be used for the SQLMesh state connection.
Installation
pip install "sqlmesh[trino]"
If you are using Oauth for Authentication, it is recommended to install keyring cache:
pip install "trino[external-authentication-token-cache]"
Trino Connector Support
The trino engine adapter has been tested against the Hive Connector.
Please let us know on Slack if you are wanting to use another connector or have tried another connector.
Hive Connector Configuration
Recommended hive catalog properties configuration (<catalog_name>.properties
):
| hive.metastore-cache-ttl=0s
hive.metastore-refresh-interval=5s
hive.metastore-timeout=10s
hive.allow-drop-table=true
hive.allow-add-column=true
hive.allow-drop-column=true
hive.allow-rename-column=true
hive.allow-rename-table=true
|
Connection options
Option |
Description |
Type |
Required |
type |
Engine type name - must be trino |
string |
Y |
user |
The username (of the account) to log in to your cluster. When connecting to Starburst Galaxy clusters, you must include the role of the user as a suffix to the username. |
string |
Y |
host |
The hostname of your cluster. Don't include the http:// or https:// prefix. |
string |
Y |
catalog |
The name of a catalog in your cluster. |
string |
Y |
http_scheme |
The HTTP scheme to use when connecting to your cluster. By default, it's https and can only be http for no-auth or basic auth. |
string |
N |
port |
The port to connect to your cluster. By default, it's 443 for https scheme and 80 for http |
int |
N |
roles |
Mapping of catalog name to a role |
dict |
N |
http_headers |
Additional HTTP headers to send with each request. |
dict |
N |
session_properties |
Trino session properties. Run SHOW SESSION to see all options. |
dict |
N |
retries |
Number of retries to attempt when a request fails. Default: 3 |
int |
N |
timezone |
Timezone to use for the connection. Default: client-side local timezone |
string |
N |
| gateway_name:
connection:
type: trino
user: [user]
host: [host]
catalog: [catalog]
|
Authentication