RWM Console cluster: risingwave-alinma.alinma-rw.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
1,009
State size
22.9 KiB
Created
2026-08-20 17:56
Initialized
2026-08-20 17:56
Fragment flags
LOCALITY_PROVIDERMVIEWNOWSNAPSHOT_BACKFILL_STREAM_SCANSTREAM_SCAN
Actors
ActorFragmentWorkerState
747760 64516 51 running
747761 64516 51 running
747762 64515 51 running
747763 64515 51 running
747764 64517 51 running
747765 64517 51 running
747766 64519 51 running
747767 64520 51 running
747768 64520 51 running
747769 64518 51 running
747770 64518 51 running
747771 64521 51 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.