RWM Console cluster: risingwave-alinma.alinma-rw.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
49
State size
5.3 KiB
Created
2026-08-20 16:59
Initialized
2026-08-20 16:59
Fragment flags
LOCALITY_PROVIDERMVIEWSTREAM_SCAN
Actors
ActorFragmentWorkerState
742916 62582 51 running
742917 62582 51 running
742930 62579 51 running
742931 62579 51 running
743651 62577 51 running
743652 62577 51 running
743691 62578 51 running
743692 62578 51 running
743695 62580 51 running
743696 62580 51 running
743697 62581 51 running
743698 62581 51 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_next -> 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 4 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.