Skip to content

High memory use / process hang indefinitely when token is invalid #179

Open
@jeremyyeo

Description

@jeremyyeo

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

image

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions