Skip to content

Commit

Permalink
Merge pull request #3000 from swanderz/tsql_not_equal_workaround
Browse files Browse the repository at this point in the history
Tsql not equal workaround
  • Loading branch information
jtcohen6 authored Jan 11, 2021
2 parents 30f473a + 6966ede commit a4280d7
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
## dbt 0.19.0 (Release TBD)

### Under the hood
- Rewrite logic in `snapshot_check_strategy()` to make compatible with other SQL dialects ([#3000](https://github.com/fishtown-analytics/dbt/pull/3000), [#3001](https://github.com/fishtown-analytics/dbt/pull/3001))

Contributors:
- [@dbeatty10](https://github.com/dbeatty10) ([dbt-adapter-tests#10](https://github.com/fishtown-analytics/dbt-adapter-tests/pull/10))
- [@swanderz](https://github.com/swanderz) ([#3000](https://github.com/fishtown-analytics/dbt/pull/3000))

## dbt 0.19.0rc1 (December 29, 2020)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,11 @@
{%- for col in check_cols -%}
{{ snapshotted_rel }}.{{ col }} != {{ current_rel }}.{{ col }}
or
({{ snapshotted_rel }}.{{ col }} is null) != ({{ current_rel }}.{{ col }} is null)
(
(({{ snapshotted_rel }}.{{ col }} is null) and not ({{ current_rel }}.{{ col }} is null))
or
((not {{ snapshotted_rel }}.{{ col }} is null) and ({{ current_rel }}.{{ col }} is null))
)
{%- if not loop.last %} or {% endif -%}
{%- endfor -%}
{%- endif -%}
Expand Down

0 comments on commit a4280d7

Please sign in to comment.