Skip to content

Error while passing schema inside the model using {{ config(materialized='table',schema='schema')}} #2

@puruku

Description

@puruku

Hi ,

  • if i pass schema inside my model either as config parameter({{ config(materialized='table',schema='schema')}}) or as source parameter ({{source('schema','table')}}) , the model fails with the following error.
    Model 'model.Test_project.model_name' (models/pod_os_stats/model_name.sql) depends on a source named 'schema.table' which was not found
  • if i remove the schema from source parameter and keep it in the config getting below error
    dbt.exceptions.CompilationException: Compilation Error in macro oracle__create_schema (macros/adapters.sql)
    'relation' is undefined
    in macro create_schema (macros/adapters/schema.sql)
    called by macro oracle__create_schema (macros/adapters.sql)
  • if i remove the schema from both config and source parameter simply use the table name it succeeds.

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