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

compilation error on adapter.drop_schema: no attribute 'drop_schema' #1980

Closed
abronner opened this issue Dec 5, 2019 · 1 comment · Fixed by #1983
Closed

compilation error on adapter.drop_schema: no attribute 'drop_schema' #1980

abronner opened this issue Dec 5, 2019 · 1 comment · Fixed by #1983
Labels
bigquery bug Something isn't working
Milestone

Comments

@abronner
Copy link

abronner commented Dec 5, 2019

Using dbt version 0.15.0 + bigquery, I've created the following macro:

{%- macro delete_dataset(dataset_id) -%}
    {%- do adapter.drop_schema(target.project, dataset_id) -%}
{%- endmacro -%}

I run it with the following command:

dbt run-operation delete_dataset --args "{dataset_id: my_dataset}"

I get the following error:

Running with dbt=0.15.0
Encountered an error while running operation: Compilation Error in macro delete_dataset
'dbt.context.runtime.DatabaseWrapper object' has no attribute 'drop_schema' 

dbt docs ref: https://docs.getdbt.com/docs/adapter#section-drop_schema

@abronner abronner added bug Something isn't working triage labels Dec 5, 2019
@drewbanin drewbanin removed the triage label Dec 5, 2019
@drewbanin drewbanin added this to the 0.15.1 milestone Dec 5, 2019
@drewbanin
Copy link
Contributor

hey @abronner - thanks for the bug report! This is definitely a bug - we'll get it fixed for dbt v0.15.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bigquery bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants