This is the implementation of the Trino data handler for MindsDB. Trino is an open-source distributed SQL query engine designed to query large data sets distributed over one or more heterogeneous data sources.Documentation Index
Fetch the complete documentation index at: https://docs.mindsdb.com/llms.txt
Use this file to discover all available pages before exploring further.
Prerequisites
Before proceeding, ensure the following prerequisites are met:- Install MindsDB locally via Docker or Docker Desktop.
- To connect Trino to MindsDB, install the required dependencies following this instruction.
- Install or ensure access to Trino.
Implementation
This handler is implemented usingpyhive, a collection of Python DB-API and SQLAlchemy interfaces for Presto and Hive.
The required arguments to establish a connection are as follows:
useris the database user.passwordis the database password.hostis the host name, IP address, or URL.portis the port used to make TCP/IP connection.
authis the authentication method. Currently, onlybasicis supported.http_schemetakes the value ofhttpby default. It can be set tohttpsas well.catalogis the catalog.schemais the schema name.withdefines default WITH-clause (properties) for ALL tables. This parameter is experimental and might be changed or removed in future release.