RWM Console cluster: risingwave-alinma.alinma-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
635
State size
103.4 KiB
Created
2026-08-20 17:32
Initialized
2026-08-20 17:32
Fragment flags
LOCALITY_PROVIDERMVIEWSNAPSHOT_BACKFILL_STREAM_SCANSTREAM_SCAN
Actors
ActorFragmentWorkerState
746926 63942 51 running
746927 63942 51 running
746928 63943 51 running
746929 63943 51 running
746930 63944 51 running
746931 63944 51 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.