-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
added option --adapter to dbt init, to create sample profiles.yml bas… #2594
added option --adapter to dbt init, to create sample profiles.yml bas… #2594
Conversation
…ed on chosen adapter
… option of dbt init
I think the test is failing because the container "fishtownanalytics/test-container:7" doesn't have the samples_profiles.yml on the postgres folder. How can I change that? |
I might be wrong about this, but I think the issue is that the |
@beckjake Thanks for the heads up! It all worked now. Ready to be reviewed, I think! |
@brunomurino I (finally) got the branch this depends upon merged into |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@brunomurino This is a great change! I have a few comments around keeping the sample profiles consistent between the different adapters.
- The top-level profile name should be
default
for all of them, so that it matches the profile name specified in the starter project and just works from the get-go. I dislike that the starter project hasprofile: 'default'
andname: 'my_new_project'
, but I think we would need to write a bunch more code to make that dynamic. - Let's include bracketed entries (
password: [password]
) instead of fake entries (password: pa55word
) - Let's always include two
outputs
,dev
andprod
. I like how it demonstrates the options and extensibility available, especially for plugins that have multiple connection methods.- Postgres:
dev
andprod
, with different usernames ([dev_username]
and[prod_username]
), passwords, and schemas - Redshift:
dev
(password-based),prod
(iam) - Snowflake:
dev
(user-password),prod
(keypair) - BigQuery:
dev
(oauth),prod
(service_account) on BigQuery
- Postgres:
I'm curious to hear what you think about the above. I'm flexible on the specifics, but definitely set on wanting consistency here and for the plugins as well (dbt-labs/dbt-spark#98 + dbt-labs/dbt-presto#26)
I agree and have updated the sample profiles! |
@jtcohen6 Updated the sample profiles on spark and presto plugins as well, let me me know what do you think. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey @brunomurino, sorry for the delay! Thanks for humoring me on making the profiles more consistent + thorough. I left two quick comments on the redshift + snowflake profiles. Then we can merge this (+ spark + presto) for 0.18.0 :)
@jtcohen6 No worries at all and sorry for the delay. Feel free to give any more suggestions! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @brunomurino! Very last ones, I promise.
Co-authored-by: Jeremy Cohen <[email protected]>
Co-authored-by: Jeremy Cohen <[email protected]>
@jtcohen6 Happy to help! I also checked the presto-spark repos and they're already in line with your suggestions on this repo! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good! I found the tiniest last change, I'm just going to add as suggestions. Approve at your convenience and I'll merge the PR. Thanks for your patience and for your contribution!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approved once suggestions are committed
Co-authored-by: Jeremy Cohen <[email protected]>
Co-authored-by: Jeremy Cohen <[email protected]>
Co-authored-by: Jeremy Cohen <[email protected]>
Co-authored-by: Jeremy Cohen <[email protected]>
resolves #2533
Description
Added option '--adapter' to
dbt init
, to create sample profiles.yml based on chosen adapter.It gets the sample profiles.yml from the adapter 'includes' folder
Related PRs:
Checklist
CHANGELOG.md
and added information about my change to the "dbt next" section.