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.
- Connect to default target
- Select a model in the IDE
- Go to Documentation Editor tab
- Click 'Sync with the Database' button. This works.
- Change target to another with a different catalog name
- Optionally choose another model
- 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?