Description
Trino is an open-source distributed SQL query engine designed to query large data sets distributed over one or more heterogeneous data sources.Examples
Dependency:
<dependency>
<groupId>org.testcontainers</groupId>
<artifactId>trino</artifactId>
<version>1.20.0</version>
<scope>test</scope>
</dependency>
Usage:
var trino = new TrinoContainer(DockerImageName.parse("trinodb/trino:352"));
trino.start();
Dependency:
pip install testcontainers[trino]
Usage:
with TrinoContainer("trinodb/trino:451") as trino:
conn = connect(
host=trino.get_container_host_ip(),
port=trino.get_exposed_port(trino.port),
user="test",
)