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
227
State size
32.5 KiB
Created
2026-08-17 11:39
Initialized
2026-08-17 11:39
Fragment flags
LOCALITY_PROVIDERMVIEWSTREAM_SCAN
Actors
ActorFragmentWorkerState
736493 56637 51 running
736494 56637 51 running
736497 56638 51 running
736498 56638 51 running
736542 56640 51 running
736543 56640 51 running
736544 56641 51 running
736545 56641 51 running
741107 56642 51 running
741108 56642 51 running
741117 56639 51 running
741118 56639 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 -> 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.