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

Feature/materialize incremental #90

Closed
wants to merge 5 commits into from

Conversation

drewbanin
Copy link
Contributor

Materialize models as incremental. Each execution of dbt run will

  1. create the model if it doesn't exist
  2. insert new records (via the model definition) into the model

To take advantage of this feature, update your dbt_project.yml file:

models:
  'JamJar':
    events:
      materialized: incremental                 # set this field to 'incremental'
      sql_field: cast(collector_tstamp as date) # specify a field name or arbitrary sql
      ...

Incremental models can also built with sort and dist keys (specified in the config)

cc @jthandy

@drewbanin drewbanin added this to the 0.4.0 milestone Aug 4, 2016
@drewbanin drewbanin self-assigned this Aug 4, 2016
@drewbanin drewbanin closed this Aug 8, 2016
@drewbanin drewbanin deleted the feature/materialize-incremental branch August 16, 2016 17:22
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.

1 participant