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

← cluster opportunity objects signal_portfolio_fx_exposure_mv
Overview Objects Graph History
materialized view · opportunity.signal_portfolio_fx_exposure_mv Explain plan ▶
Parallelism
2
Actors
12 / 12
running
Distribution
HASH
Rows
212
State size
44.7 KiB
Created
2026-08-25 13:32
Initialized
2026-08-25 13:32
Fragment flags
LOCALITY_PROVIDERMVIEWSNAPSHOT_BACKFILL_STREAM_SCANSTREAM_SCAN
Actors
ActorFragmentWorkerState
167440 20272 33 running
167441 20272 33 running
167442 20276 33 running
167443 20276 33 running
167444 20277 33 running
167445 20277 33 running
167446 20275 33 running
167447 20275 33 running
167448 20274 33 running
167449 20274 33 running
167450 20273 33 running
167451 20273 33 running
sql · opportunity.signal_portfolio_fx_exposure_mv — click to expand
CREATE MATERIALIZED VIEW opportunity.signal_portfolio_fx_exposure_mv AS
WITH signal_metrics AS (
  SELECT
    portfolio_id,
    dim_balance_date,
    'GET_PORTFOLIO_FOREIGN_CURRENCY_EXPOSURE_PERCENTAGE' AS activity_name,
    fx_exposure_pct AS metric
  FROM opportunity.portfolio_fx_exposure_delta_mv AS portfolio_fx_exposure_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_fx_exposure_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.