RWM Console cluster: risingwave-ai-hub-int.ai-hub-rwm.svc.cluster.local

← cluster opportunity objects portfolio_unrealized_loss_delta_mv
Overview Objects Graph History
materialized view · opportunity.portfolio_unrealized_loss_delta_mv Explain plan ▶
Parallelism
2
Actors
13 / 13
running
Distribution
HASH
Rows
279
State size
15.4 KiB
Created
2026-08-25 13:16
Initialized
2026-08-25 13:15
Fragment flags
LOCALITY_PROVIDERMVIEWNOWSNAPSHOT_BACKFILL_STREAM_SCANSTREAM_SCAN
Actors
ActorFragmentWorkerState
166727 20094 33 running
166728 20094 33 running
166729 20095 33 running
166730 20097 33 running
166731 20097 33 running
166732 20096 33 running
166733 20096 33 running
166734 20092 33 running
166735 20092 33 running
166736 20091 33 running
166737 20091 33 running
166738 20093 33 running
+ 1 more actor(s) (13 running)
sql · opportunity.portfolio_unrealized_loss_delta_mv — click to expand
CREATE MATERIALIZED VIEW opportunity.portfolio_unrealized_loss_delta_mv AS
SELECT
  pag.portfolio_id,
  pnl.dim_balance_date,
  pnl.currency_code,
  ABS(pnl.unrealized_gain_loss / pnl.total_average_cost) AS loss_ratio
FROM insights.pnl_summary_mv AS pnl
JOIN insights.portfolio_to_account_groups_mv AS pag
  ON pag.account_group_id = pnl.account_group_id AND pag.type = 'all'
WHERE
  pnl.position_type = 'POSITION'
  AND pnl.unrealized_gain_loss < 0
  AND pnl.total_average_cost <> 0
  AND CAST(pnl.dim_balance_date AS TIMESTAMPTZ) >= CURRENT_TIMESTAMP - INTERVAL '30 DAYS'
Lineage · opportunity.portfolio_unrealized_loss_delta_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.