-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
[CT-1512] [Bug] The profiles.yml file is read multiple times. #6263
Comments
@akashrn5 Thanks for opening. You're right, It looks like the approach you're taking in #6264 is to hold onto the There's definitely merit in being able to pass a raw or already-rendered connection profile, as a Python dict from memory, into config generation methods, rather than needing to read it from the file system at all. That's a desirable outcome of our "API-ification" work. Related issues: |
@jtcohen6 thanks for your views on this. I am a new user to dbt. I observed this thing during debugging the code and i felt its not ok to read the file two times when you have the option to read once and reuse it. It didn't create any functional issue for me as such. But, i thought we should avoid it. Since |
@akashrn5 Heard! Amazing to see you, as a newer dbt user, already diving into this part of the code & opening a PR to improve it :) In terms of sequencing this work:
Given that - we're going to hold off on merging the exact changes you're proposing in #6264, until we've had a chance to push the API-ification work around profiles to our feature branch ( |
@jtcohen6 Thank you for your welcome. DBT is a great project and would love to work on it, develop and optimize it. I understood your point. Since you are already working on the refactoring part, you want the current changes to be as it is. So i guess it will be open then. But if the "API-fication" is going to take long time and won't be considered for next release, it would be ok to consider this change. This is just a suggestion as i'm not aware of the timeline, if its on the finish line, thats really great. Also i would love to work on the feature if there are some tasks where i can contribute. Thanks again :) |
Let's remove the double read of Closing in favor of that issue |
Is this a new bug in dbt-core?
Current Behavior
When a dbt run/compile/deps/docs generate are executed the profiles.yml is being read twice which is unnecessary.
Expected Behavior
The reading of profiles.yml has to be once per operation.
Steps To Reproduce
Relevant log output
No response
Environment
Which database adapter are you using with dbt?
spark
Additional Context
No response
The text was updated successfully, but these errors were encountered: