Trino
Access configuration details to connect Soda to a Trino data source.
Connection configuration reference
Install the following package:
pip install soda-trinoData source YAML
Core connection
Create the config file:
soda data-source create -f ds_config.ymlConfigure connection
To connect to Trino, add a data_source block to your ds_config.yml file.
Username/password
✅
✅
JWT (existing token)
✅
JWT (OAuth – client credentials flow)
✅
✅
No authentication
✅
Core connection parameters
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.
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.
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.
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.
Last updated
Was this helpful?
