Skip to content

correct typo, include link to Indicium #1

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

Merged
merged 1 commit into from
Apr 26, 2022
Merged

Conversation

dataders
Copy link
Contributor

No description provided.

@aosingh aosingh merged commit 9d9a8bf into oracle:main Apr 26, 2022
@aosingh
Copy link
Member

aosingh commented Apr 26, 2022

Merged

algol68 added a commit to algol68/dbt-oracle that referenced this pull request Jun 3, 2022
changes are to address issues when using custom schemas

1 - create schema call verifies database. As of 1.0.7 Oracle adapter allows for database parm not to be set since Oracle doesn't allow statement prefix to include database name. Trickle down effect of that change is 'create schema check' not working hence why lines are removed. There is even dummy-noop already in that method since you can't create schemas dbt-way in oracle (schemas are users). 

2 - once oracle#1 is addressed and custom schema is used, rename command will not find temp model table since schema is not passed as part of rename statement. Furthermore, rename statement will not work because Oracle doesn't support renaming tables that way. Alter Table to the rescue.

changed from 
rename <table_original_name> to <table_new_name>

to

alter table <schema>.<original_name> rename to <table_new_name>


tested with 
Python 3.9.1
dbt-core 1.0.7
dbt-oracle 1.0.2
@algol68 algol68 mentioned this pull request Jun 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants