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

← cluster insights objects flow_by_distribution_mv
Overview Objects Graph History
materialized view · insights.flow_by_distribution_mv Explain plan ▶
Parallelism
2
Actors
16 / 16
running
Distribution
HASH
Rows
2,550
State size
506.3 KiB
Created
2026-08-20 17:38
Initialized
2026-08-20 17:37
Fragment flags
LOCALITY_PROVIDERMVIEWSNAPSHOT_BACKFILL_STREAM_SCANSTREAM_SCAN
Actors
ActorFragmentWorkerState
744397 64123 51 running
744398 64123 51 running
744760 64124 51 running
744761 64124 51 running
744772 64122 51 running
744773 64122 51 running
747096 64117 51 running
747097 64117 51 running
747102 64118 51 running
747103 64118 51 running
747104 64119 51 running
747105 64119 51 running
+ 4 more actor(s) (16 running)
sql · insights.flow_by_distribution_mv — click to expand
CREATE MATERIALIZED VIEW insights.flow_by_distribution_mv AS
SELECT
  account_group_id,
  dim_transaction_date,
  distribution_type,
  taxonomy_node_id,
  taxonomy_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
    av.account_group_id,
    av.dim_transaction_date,
    ad.distribution_type,
    ad.taxonomy_node_id,
    ad.taxonomy_code,
    av.position_type,
    av.group_currency AS currency_code,
    SUM(av.net_value_group * ad.share) AS adjusted_net_flow,
    SUM(av.net_value_system * ad.share) AS adjusted_net_flow_system_currency
  FROM insights.flow_asset_values_mv AS av
  JOIN insights.asset_distributions_for_consumers_mv AS ad
    ON ad.asset_id = av.asset_id
    AND av.dim_transaction_date >= ad.effective_start_date
    AND av.dim_transaction_date < ad.effective_end_date
  GROUP BY
    av.account_group_id,
    av.dim_transaction_date,
    ad.distribution_type,
    ad.taxonomy_node_id,
    ad.taxonomy_code,
    av.position_type,
    av.group_currency
) AS grouped
WINDOW w AS (
  PARTITION BY account_group_id, distribution_type, taxonomy_node_id, position_type, currency_code
  ORDER BY dim_transaction_date
)
Lineage · insights.flow_by_distribution_mv 13 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.