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/incremental predicates #161
Feature/incremental predicates #161
Conversation
…ors-3/dbt-databricks into feature/incremental-predicates
dbt/include/databricks/macros/materializations/incremental/incremental.sql
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Otherwise, LGTM.
I'll test with this change once the upstreams are merged.
dbt/include/databricks/macros/materializations/incremental/incremental.sql
Outdated
Show resolved
Hide resolved
tests/integration/incremental_strategies/test_incremental_strategies.py
Outdated
Show resolved
Hide resolved
@ueshin thank you for the review! I believe i've addressed the outstanding issues! |
Hi @dave-connors-3, now that the PRs for |
from dbt.tests.adapter.incremental.test_incremental_predicates import BaseIncrementalPredicates | ||
|
||
|
||
models__spark_incremental_predicates_sql = """ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we need to re-define this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i believe I needed to redefine this in my dbt-spark PR, and I assumed I needed to do the same here.
i did just run the SQL in databricks without the cast function and it seemed to execute. I can remove this if we don't think this is necessary!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shall we just rename it to models__databricks_incremental_predicates_sql
, then?
…ors-3/dbt-databricks into feature/incremental-predicates
Why was |
Totally by mistake! restored the file |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, pending linter.
@dave-connors-3 Could you run black
again?
@ueshin i think black is passing, but flake8 line length checks are failing |
@dave-connors-3 Yeah, sometimes |
Thanks! merging. |
resolves #160
Description
Updates the incremental materialization to include user supplied
incremental_predicates
and passes that to thedbt_spark_get_incremental_sql
macro.The changes to
dbt_spark_get_incremental_sql
are updated in dbt-spark PR #436Checklist
CHANGELOG.md
and added information about my change to the "dbt-databricks next" section.