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

← cluster insights objects orphan_accruals_mv
Overview Objects Graph History
materialized view · insights.orphan_accruals_mv Explain plan ▶
Parallelism
2
Actors
22 / 22
running
Distribution
HASH
Rows
1,024
State size
319.0 KiB
Created
2026-08-18 13:17
Initialized
2026-08-18 13:17
Fragment flags
LOCALITY_PROVIDERMVIEWSNAPSHOT_BACKFILL_STREAM_SCANSTREAM_SCAN
Actors
ActorFragmentWorkerState
739220 58863 51 running
739221 58863 51 running
739222 58864 51 running
739223 58864 51 running
739647 58869 51 running
739648 58869 51 running
739699 58865 51 running
739700 58865 51 running
739701 58866 51 running
739702 58866 51 running
739703 58867 51 running
739704 58867 51 running
+ 10 more actor(s) (22 running)
sql · insights.orphan_accruals_mv — click to expand
CREATE MATERIALIZED VIEW insights.orphan_accruals_mv AS
SELECT
  a.account_id,
  a.asset_id,
  a.dim_value_date,
  a.type,
  a.currency_code,
  CAST(0 AS DECIMAL) AS market_value,
  CAST(0 AS DECIMAL) AS average_cost,
  CAST(0 AS DECIMAL) AS average_cost_per_unit,
  CAST(0 AS DECIMAL) AS purchased_quantity,
  a.accrued_amount AS fair_value,
  a.accrued_amount AS accrued_value,
  a.accrued_value_system_currency AS accrued_value_system_currency,
  CAST(0 AS DECIMAL) AS market_value_system_currency,
  CAST(0 AS DECIMAL) AS average_cost_system_currency,
  CAST(0 AS DECIMAL) AS average_cost_per_unit_system_currency,
  a.accrued_amount * COALESCE(fx_sys.rate, CASE WHEN a.currency_code = 'SAR' THEN 1 ELSE NULL END) AS fair_value_system_currency
FROM insights.accruals_agg_mv AS a
LEFT JOIN insights.holding_values_raw_mv AS h
  ON h.account_id = a.account_id
  AND h.asset_id = a.asset_id
  AND h.dim_value_date = a.dim_value_date
  AND h.type = a.type
LEFT JOIN asset_service.foreign_exchange_rates_eod_ft AS fx_sys
  ON fx_sys.source_currency_code = a.currency_code
  AND fx_sys.target_currency_code = 'SAR'
  AND fx_sys.date = a.dim_value_date
WHERE
  h.account_id IS NULL AND (
    NOT fx_sys.rate IS NULL OR a.currency_code = 'SAR'
  )
Lineage · insights.orphan_accruals_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.