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

← cluster alinma_bff objects marketplace_exposure_by_asset_mv
Overview Objects Graph History
materialized view · alinma_bff.marketplace_exposure_by_asset_mv Explain plan ▶
Parallelism
2
Actors
4 / 4
running
Distribution
HASH
Rows
986
State size
180.7 KiB
Created
2026-08-20 17:52
Initialized
2026-08-20 17:51
Fragment flags
LOCALITY_PROVIDERMVIEWSNAPSHOT_BACKFILL_STREAM_SCANSTREAM_SCAN
Actors
ActorFragmentWorkerState
747465 64407 51 running
747466 64407 51 running
747617 64408 51 running
747618 64408 51 running
sql · alinma_bff.marketplace_exposure_by_asset_mv — click to expand
CREATE MATERIALIZED VIEW alinma_bff.marketplace_exposure_by_asset_mv AS
SELECT
  account_group_id,
  asset_id,
  market_value_system_currency AS exposure,
  CAST('SAR' AS VARCHAR) AS exposure_currency_code,
  quantity,
  weight,
  unrealized_pnl,
  total_cost
FROM (
  SELECT
    account_group_id,
    asset_id,
    market_value_system_currency,
    quantity,
    weight,
    market_value_system_currency - total_average_cost_system_currency AS unrealized_pnl,
    total_average_cost_system_currency AS total_cost,
    ROW_NUMBER() OVER (PARTITION BY account_group_id, asset_id ORDER BY dim_balance_date DESC) AS rn
  FROM insights.position_by_asset_mv AS position_by_asset_mv_next
  WHERE
    source_entity_type = 'client'
    AND position_type = 'POSITION'
    AND NOT market_value_system_currency IS NULL
) AS ranked
WHERE
  rn = 1
Lineage · alinma_bff.marketplace_exposure_by_asset_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.