-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Fix clustering on multiple columns (BigQuery) #1013
Milestone
Comments
drewbanin
added a commit
that referenced
this issue
Oct 17, 2018
…tiple Fix clustering on multiple columns (BigQuery) (#1013)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Issue
Issue description
dbt 0.11.1 injects SQL wrapped in parens for clustering keys:
https://github.com/fishtown-analytics/dbt/blob/dev/guion-bluford/dbt/include/global_project/macros/adapters/bigquery.sql#L14-L28
When a list of columns are provided in the
cluster_by
config, this evaluates to a query like:This results in an error like:
This can be fixed by removing the parens around the
cluster by
clause, eg:Results
BigQuery returns the following error:
System information
dbt 0.11.1
The text was updated successfully, but these errors were encountered: