-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Tsql not equal workaround #3000
Tsql not equal workaround #3000
Conversation
merge 0.12.latest to master
Merge 0.12.latest into master
…to dev/kiyoshi-kuromiya
…alytics/dbt into dev/kiyoshi-kuromiya
Thanks for your pull request, and welcome to our community! We require contributors to sign our Contributor License Agreement and we don't seem to have your signature on file. Check out this article for more information on why we have a CLA. In order for us to review and merge your code, please submit the Individual Contributor License Agreement form attached above above. If you have questions about the CLA, or if you believe you've received this message in error, don't hesitate to ping @drewbanin. CLA has not been signed by users: @swanderz |
strange redshift error.. perhaps it is transient?
|
also git newb... but I made my two commits into a new branch directly after running |
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.
Nice! Ok, I'm up for sneaking this into v0.19.0, since we already have some eyes on snapshots (on account of invalidate_hard_deletes
).
Copying from microsoft/dbt-synapse#32:
select
scenario,
(a is null) != (b is null) as previous_logic,
((a is null) and not (b is null)) or (not (a is null) and (b is null)) as proposed_logic
from (
select 1 as scenario, null as a, null as b
union all
select 2 as scenario, 1 as a, 1 as b
union all
select 3 as scenario, null as a, 1 as b
union all
select 4 as scenario, 1 as a, null as b
) sbq
scenario | previous_logic | proposed_logic |
---|---|---|
1 | false | false |
2 | false | false |
3 | true | true |
4 | true | true |
This works on every database I can think to test: Postgres, Redshift, Snowflake, BigQuery, Spark, Presto.
Looks like the Redshift error was intermittent—sometimes the UDF memory is exhausted, we're not exactly sure why—so I reran the tests with success.
Tiny tiny requested changes re: changelog note + comments. As far as the extraneous git commit, I think those are hanging out on your fork's version of dev/kiyoshi-kuromiya
(see diff). You could try:
- Deleting your fork's branch and recreating from remote
- Rebasing your branch against
fishtown-analytics/dbt/dev/kiyoshi-kuromiya
core/dbt/include/global_project/macros/materializations/snapshot/strategies.sql
Outdated
Show resolved
Hide resolved
Co-authored-by: Jeremy Cohen <jtcohen6@gmail.com>
…ot/strategies.sql Co-authored-by: Jeremy Cohen <jtcohen6@gmail.com>
Co-authored-by: Jeremy Cohen <jtcohen6@gmail.com>
This is great! Will make dbt-sqlservers life much easier |
resolves #3001
@jtcohen6 @mikaelene
Description
per this conversation
microsoft/dbt-synapse#32 (comment)
Checklist
CHANGELOG.md
and added information about my change to the "dbt next" section.