Skip to content

Databricks CLI as possible connection type in profile config #1136

@Rhiyo

Description

@Rhiyo

Describe the feature

Adding databricks cli connection support to profile connection config.

Describe alternatives you've considered

using oauth as the auth_type.

Additional context

When using Databricks Connect v2 or DBX SQL Connector I can use a Databricks CLI to connect to databricks. This allows Databricks CLI to manage and connection decoupling it nicely and making so I do not have to reauthenticate between usage. Currently if using dbt the browser will reopen to create it's own authentication with oauth. If it supported the CLI it wouldn't need to reauthenticate.

You could just have the auth_type option as CLI - but you'd need two other new config paremters:

cli_path the path to the cli exe

cli_profile the dbx cli profile to use

Dbt-databricks is already using the DBX connection Config object and these above values can go directly into it.

Who will this benefit?

Anyone using multiple different libraries in their processes to connect to databricks via oauth locally.

Are you interested in contributing this feature?

Yes, I am very across the underlying DBX connection logic and I am able to support on this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions