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

Running BigQuery list_schemas macro produces error #2412

Closed
4 tasks
azhard opened this issue May 6, 2020 · 0 comments · Fixed by #2413
Closed
4 tasks

Running BigQuery list_schemas macro produces error #2412

azhard opened this issue May 6, 2020 · 0 comments · Fixed by #2413
Labels
bug Something isn't working

Comments

@azhard
Copy link
Contributor

azhard commented May 6, 2020

Describe the bug

When attempting to run the list_schemas macro from a BigQuery dbt project, you get the following error

list_schemas() missing 1 required positional argument: 'database'

Steps To Reproduce

Create a test macro in a BigQuery dbt project that invokes list_schema like this one:

{%- macro test() -%}
    {%- do list_schemas(target.project) -%}
{%- endmacro -%}

Run the macro with dbt run-operation test to see the error

Expected behavior

Macro should work without any compilation error.

System information

Which database are you using dbt with?

  • postgres
  • redshift
  • [ x] bigquery
  • snowflake
  • other (specify: ____________)

The output of dbt --version:

0.16.1

The operating system you're using:
macOS Catalina (10.15.4)

The output of python --version:
3.8.1

Additional context

N/A

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

Successfully merging a pull request may close this issue.

2 participants