databricks-sql-cli icon indicating copy to clipboard operation
databricks-sql-cli copied to clipboard

`NO_SUCH_CATALOG_EXCEPTION` when starting REPL

Open shivonchain opened this issue 1 year ago • 0 comments

Running the REPL using dbsqlcli or dbsqlcli <database> or dbsqlcli --oauth results in a NO_SUCH_CATALOG_EXCEPTION

[NO_SUCH_CATALOG_EXCEPTION] Catalog 'btda-dea' was not found. Please verify the catalog name and then retry the query or command again.

It is unclear where that catalog name is being fetched from. My dbsqlclirc file is populated as described in the docs and I don't have any environment variables specifying that as the catalog name.

Query history in the Databricks UI shows SHOW TABLES failing with this error, so it seems like the catalog is being set somewhere in the session, but I can't figure out where -- any tips are appreciated!

shivonchain avatar Nov 19 '24 15:11 shivonchain