Skip to content

Trino

exportbadge

Introduced in v4.0

The Trino backend is experimental and is subject to backwards incompatible changes.

ibis.memtable Support memtable

The Trino backend supports memtables by constructing a string with the contents of the in-memory object. This will be very inefficient for medium to large in-memory tables. Please file an issue if you observe performance issues when using in-memory tables.

Install

Install ibis and dependencies for the Trino backend:

pip install 'ibis-framework[trino]'
conda install -c conda-forge ibis-trino
mamba install -c conda-forge ibis-trino

Connect

ibis.trino.connect

con = ibis.trino.connect(
    user="user",
    password="password",
    port=8080,
    database="database",
    schema="default",
)

ibis.trino.connect is a thin wrapper around ibis.backends.trino.Backend.do_connect.

Connection Parameters

do_connect(user='user', password=None, host='localhost', port=8080, database=None, schema=None, **connect_args)

Create an Ibis client connected to a Trino database.


Last update: August 1, 2023