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

Bigquery clustering columns (#918) #978

Merged
merged 8 commits into from
Sep 11, 2018

Conversation

beckjake
Copy link
Contributor

@beckjake beckjake commented Sep 6, 2018

Add clustering support to bigquery adapter, include it in the stats output, add tests.
Fixes #918.

@beckjake beckjake changed the base branch from development to dev/lucretia-mott September 11, 2018 13:35
@cmcarthur
Copy link
Member

looks ok to me, @drewbanin can you take a look?

{% endif %}

{% set cluster_by_clause %}
cluster by {{ raw_cluster_by }}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i think this is supposed to be a CSV of column names. That means that folks would do something like

{{
  config(
    materialized='table',
    cluster_by='field_1, field_2'
  )
}}

I think that's reasonable, but we accept an actual list of values in other similar configs: https:/fishtown-analytics/dbt/blob/development/dbt/include/global_project/macros/adapters/redshift.sql#L21

all things being equal, I think it would be good to keep this interface with other configs like this!

Copy link
Contributor

@drewbanin drewbanin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM when the tests pass

@beckjake beckjake merged commit 6e62058 into dev/lucretia-mott Sep 11, 2018
@beckjake beckjake deleted the bigquery-clustering-columns branch September 11, 2018 20:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants