Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
dbt run for incremental models fail on second run
Internal Issue Ticket: https://jira.cloudera.com/projects/DBT/issues/DBT-130 (#42) Test plan: Use the Impala demo project https://github.com/cloudera/dbt-impala-example Generate the first set of fake data, and then run the models using dbt run. Next generate the second set of fake data, and then run the models using dbt run. The second run should terminate without any error, updating the the incremental model. Synopsis: For model definitions that define partition_by clause with a string, the adapter wrongly generates the insert overwrite statement, resulting in an error being thrown by impala. An example model configuration that will generate error (before applying this PR): {{ config( materialized='incremental', partition_by='report_date' ) }} An example model configuration that will not generate error (before applying this PR): {{ config( materialized='incremental', partition_by=['report_date'] ) }} The current PR addresses the issue of defining model config either as a string or array of string.
- Loading branch information