Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Add Catalog handling in database name#42

Open
johnbrandborg wants to merge 4 commits into
databricks:maindatabricks/databricks-sql-cli:mainfrom
johnbrandborg:mainjohnbrandborg/databricks-sql-cli:mainCopy head branch name to clipboard
Open

Add Catalog handling in database name#42
johnbrandborg wants to merge 4 commits into
databricks:maindatabricks/databricks-sql-cli:mainfrom
johnbrandborg:mainjohnbrandborg/databricks-sql-cli:mainCopy head branch name to clipboard

Conversation

@johnbrandborg
Copy link
Copy Markdown

The current setup doesn't allow for easy use of Catalogs from the Hive Metastore, and the Unity Catalog. This request adds the functionality so that catalogs can be selected.

The default catalog is hive_metastore when selecting a database with no period. (eg, \u default) If one period is given, it is assumed the format is <catalog>.<database>. This allows for easy selection of the catalog without to much complication. (eg, \u main.default)

Some addition minor updates/fixes on top of this:

  1. The list_databases method used by \lwas not returning the headers properly, but rather a database and catalog.
  2. A method called reconnect on the SQLExecute was made redundant by the method connect which did the same thing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

Morty Proxy This is a proxified and sanitized view of the page, visit original site.