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.
If you installed MindsDB locally via pip, you need to install all handler dependencies manually. To do so, go to the handler’s folder (mindsdb/integrations/handlers/trino_handler) and run this command:
pip install -r requirements.txt.