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

← cluster alpheya_agent objects transactions_mv
Overview Objects Graph History
materialized view · alpheya_agent.transactions_mv Explain plan ▶
Parallelism
2
Actors
18 / 18
running
Distribution
HASH
Rows
3,239
State size
1.1 MiB
Created
2026-08-22 10:28
Initialized
2026-08-22 10:27
Fragment flags
LOCALITY_PROVIDERMVIEWSTREAM_SCAN
Actors
ActorFragmentWorkerState
156990 19395 33 running
156991 19395 33 running
156992 19403 33 running
156993 19403 33 running
157396 19396 33 running
157397 19396 33 running
157415 19397 33 running
157416 19397 33 running
157417 19398 33 running
157418 19398 33 running
157419 19399 33 running
157420 19399 33 running
+ 6 more actor(s) (18 running)
sql · alpheya_agent.transactions_mv — click to expand
CREATE MATERIALIZED VIEW alpheya_agent.transactions_mv
WITH (
  backfill_order=FIXED(olap.transaction_types_dm -> olap.transactions_dm)
) AS
SELECT
  t.transaction_id,
  t.account_id,
  t.portfolio_id,
  t.asset_id,
  COALESCE(tt.type, 'OTHER') AS transaction_type,
  t.transaction_type_id,
  t.currency_code,
  t.quantity,
  t.unit_price,
  t.gross_value,
  t.net_value,
  t.valuation_date,
  t.settlement_date,
  t.order_id,
  t.external_reference,
  tt.name_en AS description
FROM (
  SELECT
    tx.transaction_id,
    tx.account_id,
    atp.portfolio_id,
    tx.asset_id,
    tx.transaction_type_id,
    tx.currency_code,
    tx.quantity,
    tx.unit_price,
    tx.gross_value,
    tx.net_value,
    tx.transaction_valuation_date AS valuation_date,
    tx.transaction_settlement_date AS settlement_date,
    tx.order_id,
    tx.external_reference,
    ROW_NUMBER() OVER (
      PARTITION BY tx.transaction_id
      ORDER BY atp.effective_start_date DESC NULLS LAST, atp.portfolio_id DESC
    ) AS link_rank
  FROM olap.transactions_dm AS tx
  LEFT JOIN olap.account_to_portfolios_dm AS atp
    ON atp.account_id = tx.account_id
    AND atp.disabled_at IS NULL
    AND atp.effective_start_date <= tx.transaction_valuation_date
    AND (
      atp.effective_end_date IS NULL
      OR atp.effective_end_date > tx.transaction_valuation_date
    )
  WHERE
    tx.disabled_at IS NULL
) AS t
LEFT JOIN olap.transaction_types_dm FOR SYSTEM_TIME AS OF PROCTIME() AS tt
  ON tt.transaction_type_id = t.transaction_type_id
WHERE
  t.link_rank = 1
Lineage · alpheya_agent.transactions_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.