tconbeer / harlequin

The SQL IDE for Your Terminal.
https://harlequin.sh
MIT License
3.3k stars 76 forks source link

Catalog Error when connecting to BigQuery #576

Closed hcrosse closed 3 weeks ago

hcrosse commented 3 weeks ago

Before Proceeding, please acknowledge:

Describe the bug

When connecting to my BigQuery project the following error popup appears.

Catalog Error

Could not update data catalog

list index out of range
image

Upon exiting the popup the query and result panels function fine but the Data Catalog panel remains empty.

To Reproduce

harlequin -a bigquery <my-project-name>

I will note that we have ~5k tables

Expected behavior

Data Catalog is successfully populated, allowing me to see tables and their schemas.

Actual behavior

Data Catalog is empty after closing the error popup.

image

Contributing Are you interested in contributing a fix?

Additional context Please provide as much as you can, but don't waste your time if it's definitely not relevant or you don't know.

What is the output of harlequin --version? 1.20.0

What database adapter are you using with Harlequin? bigquery 1.0.2

What other options are you using when invoking Harlequin? N/A, fresh install with harlequin[bigquery]

Can you tell us more about your system?

How did you install Harlequin?

tconbeer commented 3 weeks ago

Thanks for the report. I'm going to open an issue referencing this to the harlequin-bigquery repo, since this error is being raised by that project.

This may or may not be related, but I think the proper usage requires the --project flag, instead of passing in the project name as an argument: harlequin -a bigquery --project <my-project-name>