From fbfe37672f96217e11757fab90eb3ffce4e003b8 Mon Sep 17 00:00:00 2001 From: Charlie Costanzo Date: Thu, 24 Aug 2023 14:23:28 -0400 Subject: [PATCH] renaming missing form_factor values to 'Unidentified' (#2922) --- warehouse/models/mart/payments/fct_payments_rides_v2.sql | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/warehouse/models/mart/payments/fct_payments_rides_v2.sql b/warehouse/models/mart/payments/fct_payments_rides_v2.sql index bde5218bf6..23d062b534 100644 --- a/warehouse/models/mart/payments/fct_payments_rides_v2.sql +++ b/warehouse/models/mart/payments/fct_payments_rides_v2.sql @@ -354,7 +354,12 @@ join_table AS ( fct_payments_rides_v2 AS ( SELECT - *, + * EXCEPT(form_factor), + CASE + WHEN form_factor IS NULL THEN 'Unidentified' + WHEN form_factor = '' THEN 'Unidentified' + ELSE form_factor + END AS form_factor, DATETIME_DIFF( off_transaction_date_time_pacific, transaction_date_time_pacific,