RWM Console cluster: risingwave-ai-hub-int.ai-hub-rwm.svc.cluster.local

← cluster insights objects settled_cash_series_mv
Overview Objects Graph History
materialized view · insights.settled_cash_series_mv Explain plan ▶
Parallelism
2
Actors
12 / 12
running
Distribution
HASH
Rows
818
State size
112.1 KiB
Created
2026-08-19 08:34
Initialized
2026-08-19 08:33
Fragment flags
LOCALITY_PROVIDERMVIEWSTREAM_SCAN
Actors
ActorFragmentWorkerState
157296 16703 33 running
157297 16703 33 running
157328 16704 33 running
157329 16704 33 running
157342 16706 33 running
157343 16706 33 running
157344 16707 33 running
157345 16707 33 running
158193 16705 33 running
158194 16705 33 running
158201 16708 33 running
158202 16708 33 running
sql · insights.settled_cash_series_mv — click to expand
CREATE MATERIALIZED VIEW insights.settled_cash_series_mv
WITH (
  backfill_order=FIXED(asset_service.assets_dm -> insights.transactions_merged_mv)
) AS
WITH cash_legs AS (
  SELECT
    t.account_id,
    t.asset_id,
    t.currency_code,
    t.transaction_settlement_date AS dim_settlement_date,
    t.transaction_id,
    t.net_value
  FROM insights.transactions_merged_mv AS t
  LEFT JOIN asset_service.assets_dm FOR SYSTEM_TIME AS OF PROCTIME() AS a
    ON a.id = t.asset_id
  WHERE
    NOT t.transaction_settlement_date IS NULL AND a.type = 'CASH'
), daily AS (
  SELECT
    account_id,
    asset_id,
    currency_code,
    dim_settlement_date,
    SUM(net_value) AS settlement_amount_delta,
    COUNT(transaction_id) AS transaction_count
  FROM cash_legs
  GROUP BY
    account_id,
    asset_id,
    currency_code,
    dim_settlement_date
)
SELECT
  account_id,
  asset_id,
  currency_code,
  dim_settlement_date,
  settlement_amount_delta,
  SUM(settlement_amount_delta) OVER (PARTITION BY account_id, asset_id, currency_code ORDER BY dim_settlement_date) AS settled_cash_balance,
  transaction_count
FROM daily
Lineage · insights.settled_cash_series_mv 5 objects
Direct (1-hop) dependencies from rw_depend, across schemas. Click a neighbor to expand its dependencies; ⌘/Ctrl-click opens its page. Drag to pan, scroll to zoom. External source/sink endpoints (Kafka, Iceberg) are not shown.