| Actor | Fragment | Worker | State |
|---|---|---|---|
| 99288 | 13352 | 26 | running |
| 99289 | 13352 | 26 | running |
| 99290 | 13351 | 26 | running |
| 99291 | 13351 | 26 | running |
| 99292 | 13353 | 26 | running |
| 99293 | 13353 | 26 | running |
| 99294 | 13354 | 26 | running |
| 99295 | 13354 | 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
)