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 Explain plan ▶
Parallelism
2
Actors
6 / 6
running
Distribution
HASH
Rows
2,150
State size
350.6 KiB
Created
2026-08-26 08:28
Initialized
2026-08-26 08:28
Fragment flags
MVIEWSNAPSHOT_BACKFILL_STREAM_SCANSTREAM_SCAN
Actors
ActorFragmentWorkerState
128100 25741 26 running
128101 25741 26 running
128102 25742 26 running
128103 25742 26 running
128104 25743 26 running
128105 25743 26 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 AS flow_values_mv_next
  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 6 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.