Skip to content

[Bug] quoting database not working after upgrade to dbt-oracle >= 1.8.0 #153

Closed
@Joul1285

Description

@Joul1285

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

Hello,
With dbt-oracle 1.7.x I was using this flag in my dbt_project.yml

quoting:
  database: false

However, with the release of version 1.8.x, it seems that we now need to specify the "database" value in the profiles.yml file. I have attempted to provide the value in both lowercase and uppercase, but so far, I haven't achieved the desired result.

Additionally, I have tried various combinations of quoting properties, as shown below:

quoting:
  database: false/true
  identifier: false/true
  schema: false/true

When attempting to build a model, DBT raised the following error:

Compilation Error in model my_model (models/my_model.sql)
  When searching for a relation, dbt found an approximate match. Instead of guessing
  which relation to use, dbt will move on. Please delete MY_SCHEMA.MY_MODEL, or rename it to be less ambiguous.
  Searched for: MY_SCHEMA.MY_MODEL
  Found: MY_SCHEMA.MY_MODEL

Despite this error, the model was successfully built in the database.

Furthermore, I noticed that if I do not provide the "database" value in the profiles.yml file, I receive a warning during each run, but no error on run.

Has anyone else encountered this issue? Any insights or suggestions would be greatly appreciated.

Expected Behavior

No response

Steps To Reproduce

No response

Relevant log output using --debug flag enabled

No response

Environment

- dbt-core: 1.8.1
- dbt-oracle: 1.8.1

What Oracle database version are you using dbt with?

19c

Additional Context

select SYS_CONTEXT('userenv', 'DB_NAME') from dual;
Return my database name in lowercase.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions