| Actor | Fragment | Worker | State |
|---|---|---|---|
| 96155 | 16129 | 26 | running |
| 96156 | 16129 | 26 | running |
| 96163 | 16126 | 26 | running |
| 96164 | 16126 | 26 | running |
| 96165 | 16127 | 26 | running |
| 96166 | 16127 | 26 | running |
| 96167 | 16128 | 26 | running |
| 96168 | 16128 | 26 | running |
CREATE MATERIALIZED VIEW insights.client_account_direct_mv AS
SELECT
atc.client_id,
atc.account_id,
atc.effective_start_date,
atc.effective_end_date,
CAST('all' AS VARCHAR) AS type
FROM olap.accounts_to_clients_dm AS atc
JOIN insights.open_accounts_mv AS oa
ON oa.account_id = atc.account_id
WHERE
atc.disabled_at IS NULL
AND (
atc.effective_end_date IS NULL
OR atc.effective_end_date > atc.effective_start_date
)