Trino

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

circle-info

Soda uses the official Trino Python clientarrow-up-right 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:


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.


circle-info

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

Last updated

Was this helpful?