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

← cluster adib_rm objects party_top_allocations_mv
Overview Objects Graph History
materialized view · adib_rm.party_top_allocations_mv Explain plan ▶
Parallelism
2
Actors
10 / 10
running
Distribution
HASH
Rows
3,819
State size
1.4 MiB
Created
2026-08-25 16:56
Initialized
2026-08-25 16:56
Fragment flags
MVIEWSNAPSHOT_BACKFILL_STREAM_SCANSTREAM_SCAN
Actors
ActorFragmentWorkerState
115735 24572 26 running
115736 24572 26 running
115737 24573 26 running
115738 24573 26 running
115739 24574 26 running
115740 24574 26 running
115741 24575 26 running
115742 24575 26 running
115743 24576 26 running
115744 24576 26 running
sql · adib_rm.party_top_allocations_mv — click to expand
CREATE MATERIALIZED VIEW adib_rm.party_top_allocations_mv AS
SELECT
  pag.party_id,
  pag.type AS account_group_type,
  JSONB_AGG(
    JSONB_BUILD_OBJECT(
      'assetClass',
      pac.asset_class,
      'taxonomyNodeId',
      pac.taxonomy_node_id,
      'marketValue',
      JSONB_BUILD_OBJECT('amount', CAST(pac.market_value AS VARCHAR), 'currencyCode', pac.currency_code),
      'fairValue',
      JSONB_BUILD_OBJECT('amount', CAST(pac.fair_value AS VARCHAR), 'currencyCode', pac.currency_code),
      'weight',
      pac.weight,
      'rank',
      pac.rank
    ) ORDER BY pac.rank
  ) AS top_allocations
FROM insights.party_to_account_groups_mv AS pag
JOIN (
  SELECT
    account_group_id,
    asset_class,
    taxonomy_node_id,
    market_value,
    fair_value,
    currency_code,
    weight,
    rank
  FROM (
    SELECT
      account_group_id,
      asset_class,
      taxonomy_node_id,
      market_value,
      fair_value,
      currency_code,
      weight,
      ROW_NUMBER() OVER (PARTITION BY account_group_id ORDER BY market_value DESC, asset_class ASC) AS rank
    FROM (
      SELECT
        i.account_group_id,
        i.taxonomy_node_id AS asset_class,
        i.taxonomy_node_id,
        i.market_value,
        i.fair_value,
        i.currency_code,
        i.weight
      FROM insights.intraday_position_by_distribution_mv AS i
      WHERE
        i.distribution_type = 'asset_classes' AND i.position_type = 'POSITION'
    ) AS latest
  ) AS ranked
  WHERE
    ranked.rank <= 5
) AS pac
  ON pac.account_group_id = pag.account_group_id
GROUP BY
  pag.party_id,
  pag.type
Lineage · adib_rm.party_top_allocations_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.