TrinoHook

Trino

Interact with Trino through trino package.

View on GitHub

Last Updated: Jun. 28, 2021

Access Instructions

Install the Trino provider package into your Airflow environment.

Import the module into your DAG file and instantiate it with your desired params.

Documentation

Interact with Trino through trino package.

>>> ph = TrinoHook()
>>> sql = "SELECT count(1) AS num FROM airflow.static_babynames"
>>> ph.get_records(sql)
[[340698]]

Was this page helpful?