|
|
@@ -33,7 +33,6 @@ today_base_latest AS (
|
|
|
AND id IN (SELECT user_id FROM today_changed_users)
|
|
|
) t
|
|
|
WHERE t.rn = 1
|
|
|
- AND (is_deleted IS NULL OR is_deleted = FALSE)
|
|
|
),
|
|
|
today_cert_latest AS (
|
|
|
-- 今日变更 user 的最新 cert 版本
|
|
|
@@ -49,7 +48,6 @@ today_cert_latest AS (
|
|
|
AND user_id IN (SELECT user_id FROM today_changed_users)
|
|
|
) t
|
|
|
WHERE t.rn = 1
|
|
|
- AND (is_deleted IS NULL OR is_deleted = FALSE)
|
|
|
),
|
|
|
today_dim_rebuild AS (
|
|
|
-- 今日变更 user 重 join 形成新 dim 行
|