Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Trino

Access configuration details to connect Soda to a Trino data source.

Soda uses the official Trino Python client internally to establish connections and execute queries.

Connection configuration reference

Install the following package:

pip install soda-trino

Data source YAML

Core connection

Create the config file:

soda data-source create -f ds_config.yml

Configure connection

To connect to Trino, add a data_source block to your ds_config.yml file.

Authentication method
Soda Cloud support
Soda Core support

Username/password

✅

✅

JWT (existing token)

✅

JWT (OAuth – client credentials flow)

✅

✅

No authentication

✅

Core connection parameters

Parameter
Required
Default
Description

type

Yes

—

Must be trino.

host

Yes

—

Hostname or IP address of the Trino coordinator.

catalog

Yes

—

Trino catalog name.

verify

No

True

SSL verification. Supported in Soda Core only.

1. Username/password

Supported in Soda Cloud and Soda Core.

Parameter
Required
Default
Description

port

No

443

Trino port.

http_scheme

No

https

One of http, https.

source

No

soda-core

Trino-internal label for the connection.

client_tags

No

—

Trino-internal tags for this connection.

auth_type

Depends

—

Authentication type. See modes above.

user

Username/password

—

Trino username.

password

Username/password

—

Trino password.


2. JWT (existing token)

Supported in Soda Core only.

Parameter
Required
Default
Description

auth_type

Depends

—

Authentication type. See modes above.

access_token

JWT (existing token)

—

JWT access token.


3. JWT (OAuth – client credentials)

Supported in Soda Cloud and Soda Core.

Parameter
Required
Default
Description

auth_type

Depends

—

Authentication type. See modes above.

oauth

JWT (OAuth)

—

OAuth configuration block.

oauth.token_url

JWT (OAuth)

—

OAuth token endpoint.

oauth.client_id

JWT (OAuth)

—

OAuth client ID.

oauth.client_secret

JWT (OAuth)

—

OAuth client secret.

oauth.scope

No

null

Space-separated scopes.

oauth.grant_type

No

client_credentials

OAuth grant type.


4. No authentication

Supported in Soda Core only.


Test the connection

To test your connection configuration:


Required permissions

The user Soda connects as needs SELECT on the tables you want to scan. How you grant it depends on how your Trino cluster manages access. Depending on the cluster, that's handled by Trino access control rules (such as file-based rules, Open Policy Agent, or Ranger), by the connector for the catalog, or by the underlying data source's own permissions.

If the catalog's connector supports SQL GRANT statements, grant access to a table or to a whole schema:

Some connectors don't support GRANT. Check the documentation for your catalog's connector.


Limitations & edge cases

Using Trino as a Diagnostics Warehouse destination through between-source copying is available but not fully supported.

There is a known issue when the Trino catalog is Iceberg-based. You are advised to:

  • Use within-source copying, or

  • Configure Soda to connect directly to the destination data source instead of routing through the Trino catalog connection.


You are not logged in to Soda and are viewing the default public documentation. Learn more about Licensing & documentation access.

Last updated

Was this helpful?