@@ -51,6 +51,13 @@ WITH fct_benefits_events AS (
51
51
{{ json_extract_column(' event_properties' , ' status' ) }},
52
52
{{ json_extract_column(' event_properties' , ' transit_agency' ) }},
53
53
54
+ -- New column `enrollment_method`, historical values should be set to "digital"
55
+ -- https://github.com/cal-itp/benefits/pull/2402
56
+ COALESCE(
57
+ {{ json_extract_column(' event_properties' , ' enrollment_method' , no_alias = true) }},
58
+ " digital"
59
+ ) AS event_properties_enrollment_method,
60
+
54
61
-- Historical data existed in `auth_provider` but new data is in `claims_provider`
55
62
-- https://github.com/cal-itp/benefits/pull/2401
56
63
COALESCE(
@@ -94,6 +101,13 @@ WITH fct_benefits_events AS (
94
101
{{ json_extract_column(' user_properties' , ' referring_domain' ) }},
95
102
{{ json_extract_column(' user_properties' , ' user_agent' ) }},
96
103
104
+ -- New column `enrollment_method`, historical values should be set to "digital"
105
+ -- https://github.com/cal-itp/benefits/pull/2402
106
+ COALESCE(
107
+ {{ json_extract_column(' user_properties' , ' enrollment_method' , no_alias = true) }},
108
+ " digital"
109
+ ) AS user_properties_enrollment_method,
110
+
97
111
-- Historical data existed in `eligibility_types` but new data is in `enrollment_flows`
98
112
-- https://github.com/cal-itp/benefits/pull/2379
99
113
COALESCE(
@@ -132,6 +146,7 @@ fct_old_enrollments AS (
132
146
start_version,
133
147
uuid,
134
148
processed_time,
149
+ " digital" as event_properties_enrollment_method,
135
150
CASE
136
151
WHEN client_event_time < ' 2022-08-12T07:00:00Z'
137
152
THEN " ca-dmv"
@@ -160,6 +175,7 @@ fct_old_enrollments AS (
160
175
" Monterey-Salinas Transit" as event_properties_transit_agency,
161
176
" senior" as event_properties_enrollment_flows,
162
177
event_properties_enrollment_flows as event_properties_eligibility_types,
178
+ " digital" as user_properties_enrollment_method,
163
179
CASE
164
180
WHEN client_event_time < ' 2022-08-12T07:00:00Z'
165
181
THEN " ca-dmv"
0 commit comments