Implementation
This handler is implemented usingdatabricks-sql-connector, a Python library that allows you to use Python code to run SQL commands on Databricks clusters and Databricks SQL warehouses.
The required arguments to establish a connection are as follows:
- server_hostnameis the server hostname for the cluster or SQL warehouse.
- http_pathis the HTTP path of the cluster or SQL warehouse.
- access_tokenis a Databricks personal access token for the workspace.
- session_configurationis a dictionary of Spark session configuration parameters.
- http_headersstores additional (key, value) pairs to set in HTTP headers on every RPC request the client makes.
- catalogis the catalog to use for the connection. Typically, defaults to- hive_metastoreif not provided.
- schemais the schema (database) to use for the connection. Defaults to- defaultif not provided.
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/databricks_handler) and run this command: 
pip install -r requirements.txt.