risingwave
Installation
SKILL.md
RisingWave
RisingWave is a streaming SQL database implementing the PostgreSQL wire protocol. The core pipeline is: Source (ingest) → Materialized View (continuous compute) → Sink (output).
Core Principles
- Port 4566, not 5432 — RisingWave listens on
4566for SQL connections. Dashboard is at5691. - SOURCE ≠ TABLE —
CREATE SOURCEconnects a stream but doesn't persist data.CREATE TABLEpersists. For CDC (Debezium, Maxwell, Canal), you MUST useCREATE TABLE ... FROM source. - Watermarks unlock window closing — Without
WATERMARK FOR col AS col - INTERVAL '...',EMIT ON WINDOW CLOSEwon't work; use it on the source or table definition. In RisingWave 2.8+, watermarks onTABLErequireAPPEND ONLY— useCREATE SOURCEfor non-append-only streams that need watermarks. EMIT ON WINDOW CLOSEvs default — Default emit-on-update sends partial results after each checkpoint. UseEMIT ON WINDOW CLOSEfor final, immutable window results.- Large backfills need
BACKGROUND_DDL— Creating an MV over a large table blocks withoutSET BACKGROUND_DDL = true. Monitor withSELECT * FROM rw_catalog.rw_ddl_progress. snapshot = falseon sinks — Adding a sink to an existing MV without this flag replays all historical data into the sink.- Verify docs — RisingWave evolves rapidly. When unsure, check docs.risingwave.com or query
SHOW CREATEon existing objects.
Connection
# Default local connection
Related skills