Skip to content
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

v1.8.0 #146

Merged
merged 5 commits into from
Jun 30, 2024
Merged

v1.8.0 #146

merged 5 commits into from
Jun 30, 2024

Conversation

aosingh
Copy link
Member

@aosingh aosingh commented Jun 19, 2024

Addresses #138

Decouple dbt-core and the base adapter and use a stable adapter interface i.e. dbt-adapters

dbt_1 8

database key in profile.yml is still optional for all but one of the dbt-oracle workflows. Without database name in profile.yml the generated catalog used for project documentation will be empty.

Prior dbt 1.8, we could inject database name in the manifest because of only dependency on dbt-core. From dbt-oracle 1.8, the adapter can use only the stable interface i.e. dbt-adapters. Catalog generation task is implemented in dbt-core and it seems difficult to inject database at runtime. There is no way to override a function in dbt-core. Adapters should not in any way refer to dbt-core.

For now, to circumvent the problem, I detect that database key is missing from profile.yml and issue a warning message to the user to add an entry in profile.yml for catalog generation The warning message also shows the database name that dbt-oracle expects. That way users don't have to worry about "what" the database name is and "how" to get it.

@oracle-contributor-agreement oracle-contributor-agreement bot added the OCA Verified All contributors have signed the Oracle Contributor Agreement. label Jun 19, 2024
@aosingh
Copy link
Member Author

aosingh commented Jun 20, 2024

The warning message displayed is as shown below:

Screenshot 2024-06-19 at 9 03 46 PM

Copy link

@ramapemmaraju ramapemmaraju left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

changes looks good to me.

@aosingh aosingh merged commit 2c107d4 into main Jun 30, 2024
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
OCA Verified All contributors have signed the Oracle Contributor Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants