RWM Console cluster: risingwave-adib.adib-rw.svc.cluster.local

← cluster insights objects flow_by_currency_mv
Overview Objects Graph History
materialized view · insights.flow_by_currency_mv
Parallelism
2
Actors
6 / 6
running
Distribution
HASH
Rows
0
State size
Created
2026-06-30 21:53
Initialized
2026-06-30 21:53
Fragment flags
MVIEWSNAPSHOT_BACKFILL_STREAM_SCANSTREAM_SCAN
Actors
ActorFragmentWorkerState
55041 3003 3 running
55042 3003 3 running
55043 3004 3 running
55044 3004 3 running
55045 3005 3 running
55046 3005 3 running
sql · insights.flow_by_currency_mv — click to expand
CREATE MATERIALIZED VIEW insights.flow_by_currency_mv AS
SELECT
  account_group_id,
  dim_transaction_date,
  holding_currency_code,
  position_type,
  currency_code,
  adjusted_net_flow,
  adjusted_net_flow_system_currency,
  SUM(adjusted_net_flow) OVER w AS cumulative_adjusted_netflow,
  SUM(adjusted_net_flow_system_currency) OVER w AS cumulative_adjusted_netflow_system_currency
FROM (
  SELECT
    account_group_id,
    dim_transaction_date,
    transaction_currency AS holding_currency_code,
    CASE WHEN GROUPING(position_type) = 1 THEN 'POSITION' ELSE position_type END AS position_type,
    group_currency AS currency_code,
    SUM(net_value_group) AS adjusted_net_flow,
    SUM(net_value_system) AS adjusted_net_flow_system_currency
  FROM insights.flow_values_mv
  GROUP BY
    GROUPING SETS (
      (
        account_group_id,
        dim_transaction_date,
        transaction_currency,
        position_type,
        group_currency
      ),
      (account_group_id, dim_transaction_date, transaction_currency, group_currency)
    )
  HAVING
    GROUPING(position_type) = 1 OR NOT position_type IS NULL
) AS grouped
WINDOW w AS (
  PARTITION BY account_group_id, holding_currency_code, position_type
  ORDER BY dim_transaction_date
)
Lineage · insights.flow_by_currency_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.