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

BQ get_relations_by_pattern gives Unexpected string literal "table_type" error #536

Closed
1 of 5 tasks
joellabes opened this issue Apr 8, 2022 · 1 comment · Fixed by #537
Closed
1 of 5 tasks

BQ get_relations_by_pattern gives Unexpected string literal "table_type" error #536

joellabes opened this issue Apr 8, 2022 · 1 comment · Fixed by #537
Labels
bug Something isn't working triage

Comments

@joellabes
Copy link
Contributor

Describe the bug

From the community Slack
image

Steps to reproduce

Expected results

Not to get an error

Actual results

An error Unexpected string literal "table_type"

Screenshots and log output

System information

The contents of your packages.yml file:

Which database are you using dbt with?

  • postgres
  • redshift
  • bigquery
  • snowflake
  • other (specify: ____________)

The output of dbt --version:

dbt Cloud 1.0

Additional context

This is my fault - #525 changed this, and the original author called out that quoting the column caused this error. Unfortunately, at the last moment I re-quoted it to avoid a Snowflake issue (#484 (comment))

This can be handled by creating a BQ-specific override that doesn't quote the resulting column.

Are you interested in contributing the fix?

Extremely

@joellabes joellabes added bug Something isn't working triage labels Apr 8, 2022
@cambalzer
Copy link

Thanks @joellabes. Confirming that the two affected models are using that macro: get relations by pattern

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

Successfully merging a pull request may close this issue.

2 participants