Skip to content

Target selector only changes catalog name. It does not change hostname or other target parameters when using documentation edtor. #1737

@johnnyC9000

Description

@johnnyC9000

Expected behavior

I expect that changing my profile in the selector will update all attributes used to connect to a target in all aspects of the plug-in.

Actual behavior

Changing the profile in the selector only changes the catalog name when using the documentation editor. It does not change the warehouse URL or hostname from what is specified in my default Databricks default target. This was observed by choosing a target other than the default and seeing the connection still go against the default target host, but with the catalog name specified in the alternate target.

Steps To Reproduce

This is using the Databricks dbt adapter.

  1. Connect to default target
  2. Select a model in the IDE
  3. Go to Documentation Editor tab
  4. Click 'Sync with the Database' button. This works.
  5. Change target to another with a different catalog name
  6. Optionally choose another model
  7. Click 'Sync with the Database' button. This results in an error. The error indicates the catalog specified in the target does not exist. This is because it's using the catalog from the alternate target with the hostname and url details from the default target.

Log output/Screenshots

No response

Operating System

Dev Container: mcr.microsoft.com/devcontainers/python:3.11

dbt version

1.10.2

dbt Adapter

databricks

dbt Power User version

0.58.7

Are you willing to submit PR?

  • Yes I am willing to submit a PR!

Metadata

Metadata

Assignees

No one assigned

    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