Open
Description
See databricks/dbt-databricks#388
It looks like the high memory use due to this library.
Reproduction
Setup env:
python -m venv venv
source venv/bin/activate
pip install --upgrade pip
pip install memory_profiler matplotlib databricks-sql-connector
Use the sample script exactly as in the quickstart (https://github.com/databricks/databricks-sql-python#quickstart). Importantly, make sure the access token is not valid, so export something random like export DATABRICKS_TOKEN=whatever
.
$ mprof run python quickstart.py
$ mrof plot