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

← cluster opportunity objects signal_portfolio_unrealized_loss_mv
Overview Objects Graph History
materialized view · opportunity.signal_portfolio_unrealized_loss_mv Explain plan ▶
Parallelism
2
Actors
12 / 12
running
Distribution
HASH
Rows
133
State size
36.8 KiB
Created
2026-08-20 18:05
Initialized
2026-08-20 18:04
Fragment flags
LOCALITY_PROVIDERMVIEWSNAPSHOT_BACKFILL_STREAM_SCANSTREAM_SCAN
Actors
ActorFragmentWorkerState
747912 64620 51 running
747913 64620 51 running
747914 64621 51 running
747915 64621 51 running
747916 64622 51 running
747917 64622 51 running
747920 64624 51 running
747921 64624 51 running
747922 64625 51 running
747923 64625 51 running
747930 64623 51 running
747931 64623 51 running
sql · opportunity.signal_portfolio_unrealized_loss_mv — click to expand
CREATE MATERIALIZED VIEW opportunity.signal_portfolio_unrealized_loss_mv AS
WITH signal_metrics AS (
  SELECT
    portfolio_id,
    dim_balance_date,
    'GET_PORTFOLIO_UNREALIZED_LOSS_PERCENTAGE' AS activity_name,
    loss_ratio AS metric
  FROM opportunity.portfolio_unrealized_loss_delta_mv AS portfolio_unrealized_loss_delta_mv_next
)
SELECT
  c.opportunity_id,
  c.activity_name,
  s.portfolio_id AS resource_id,
  s.dim_balance_date AS fact_date
FROM signal_metrics AS s
JOIN opportunity.opportunity_conditions_mv AS c
  ON c.activity_name = s.activity_name
WHERE
  CASE c.op
    WHEN 'GTE'
    THEN s.metric >= c.threshold
    WHEN 'GT'
    THEN s.metric > c.threshold
    WHEN 'LTE'
    THEN s.metric <= c.threshold
    WHEN 'LT'
    THEN s.metric < c.threshold
    WHEN 'EQ'
    THEN s.metric = c.threshold
    ELSE FALSE
  END
Lineage · opportunity.signal_portfolio_unrealized_loss_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.