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

Support dbt v0.19.0 #136

Closed
jtcohen6 opened this issue Jan 4, 2021 · 1 comment · Fixed by #137
Closed

Support dbt v0.19.0 #136

jtcohen6 opened this issue Jan 4, 2021 · 1 comment · Fixed by #137
Assignees

Comments

@jtcohen6
Copy link
Contributor

jtcohen6 commented Jan 4, 2021

@dbeatty10
Copy link
Contributor

I don't currently have access to a Databricks version of Spark to test dbt snapshots against dbt-core 0.19.0rc1.

But I'm guessing that dbt/include/spark/macros/materializations/snapshot.sql will need to be updated like this:

    {% if not target_relation_exists %}

-       {% set build_sql = build_snapshot_table(strategy, model['injected_sql']) %}
+       {% set build_sql = build_snapshot_table(strategy, model['compiled_sql']) %}
        {% set final_sql = create_table_as(False, target_relation, build_sql) %}

    {% else %}

@kwigley kwigley mentioned this issue Jan 7, 2021
4 tasks
@kwigley kwigley self-assigned this Jan 7, 2021
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 a pull request may close this issue.

3 participants