databricks / cli

Databricks CLI
Other
115 stars 39 forks source link

Incorrect Dbt profile name for asset bundle template rendering #1501

Closed kijewskimateusz closed 9 hours ago

kijewskimateusz commented 2 weeks ago

Describe the issue

While tinkering with your solution, I've noticed that profiles provided in dbt_project.yml and profiles.yml for generated dbt asset bundles. do not align. I have submitted a PR to fix this #1500

Configuration

Any configuration will be affected

Steps to reproduce the behavior

  1. Render any type of DAB Dbt teplate

Expected Behavior

Project name to be equal to value of profile in dbt_project.yml

Actual Behavior

Project name in profiles.yml is hardcoded to my_dbt_project

OS and CLI version

latest

Is this a regression?

No

Debug Logs

+ dbt deps --target=dev
11:24:02  Running with dbt=1.8.2
11:24:02  Warning: No packages were found in packages.yml
11:24:02  Warning: No packages were found in packages.yml

+ dbt seed --target=dev --vars '{ dev_schema: mateusz_kijewski }'
11:24:05  Running with dbt=1.8.2
11:24:05  Encountered an error:
Runtime Error
  Could not find profile named 'dbt_sql'
pietern commented 1 week ago

Thanks for reporting and submitting a fix!