From e380465a51e6f553f7c39b281471e6e17ef23fff Mon Sep 17 00:00:00 2001 From: Laurie <55149902+lauriemerrell@users.noreply.github.com> Date: Thu, 12 Oct 2023 16:30:24 -0500 Subject: [PATCH] suppress duplicate row that is causing settlements test to fail (#3011) --- .../payments/littlepay/stg_littlepay__settlements.sql | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/warehouse/models/staging/payments/littlepay/stg_littlepay__settlements.sql b/warehouse/models/staging/payments/littlepay/stg_littlepay__settlements.sql index c68ab5f289..c64576cd16 100644 --- a/warehouse/models/staging/payments/littlepay/stg_littlepay__settlements.sql +++ b/warehouse/models/staging/payments/littlepay/stg_littlepay__settlements.sql @@ -70,10 +70,10 @@ stg_littlepay__settlements AS ( _key, _payments_key FROM dedupe_and_keys - -- we have just one duplicate on settlement id; it's not associated with a refund - -- drop this one case so that we can continue testing for absolute uniqueness + -- we have just two duplicates on settlement id; they are not associated with a refund + -- drop these two cases so that we can continue testing for absolute uniqueness -- if we get more cases, we can add a qualify to get latest appearance only - WHERE _key != "bc6dd0f735a1087b13b424a3c790fc4d" + WHERE _key NOT IN ("bc6dd0f735a1087b13b424a3c790fc4d", "e8c09f593df1c61c9a890da0935d0863") )