File tree Expand file tree Collapse file tree 2 files changed +4
-0
lines changed
sql/moz-fx-data-shared-prod/subscription_platform_derived
logical_subscription_events_v1_live
service_subscription_events_v1_live Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -60,6 +60,7 @@ mozilla_account_change_events AS (
60
60
WHERE
61
61
old_subscription IS NOT NULL
62
62
AND subscription .mozilla_account_id_sha256 IS DISTINCT FROM old_subscription .mozilla_account_id_sha256
63
+ AND subscription .ended_at IS NULL
63
64
),
64
65
plan_change_events AS (
65
66
SELECT
@@ -91,6 +92,7 @@ plan_change_events AS (
91
92
subscription_changes
92
93
WHERE
93
94
subscription .provider_plan_id != old_subscription .provider_plan_id
95
+ AND subscription .ended_at IS NULL
94
96
),
95
97
trial_change_events AS (
96
98
SELECT
Original file line number Diff line number Diff line change @@ -64,6 +64,7 @@ mozilla_account_change_events AS (
64
64
WHERE
65
65
old_subscription IS NOT NULL
66
66
AND subscription .mozilla_account_id_sha256 IS DISTINCT FROM old_subscription .mozilla_account_id_sha256
67
+ AND subscription .ended_at IS NULL
67
68
),
68
69
plan_change_events AS (
69
70
SELECT
@@ -105,6 +106,7 @@ plan_change_events AS (
105
106
subscription_changes
106
107
WHERE
107
108
subscription .provider_plan_id != old_subscription .provider_plan_id
109
+ AND subscription .ended_at IS NULL
108
110
),
109
111
trial_change_events AS (
110
112
SELECT
You can’t perform that action at this time.
0 commit comments