Skip to main content
RisingWave is a distributed SQL streaming database that enables simple, efficient, and reliable processing of streaming data. To quickly get started with RisingWave, see Get started. RisingWave provides the data sinking feature to enable users to directly sink data to the database without requiring any other third-party components. This feature can work with all table types: Duplicate Key, Primary Key, Aggregate, and Unique Key tables.

Prerequisites

  • You have a running RisingWave cluster of v1.7 or later.
  • You can access the target table and the version is v2.5 or later.
  • To sink data into a table, you must have the SELECT and INSERT privileges on the target table. To grant the privileges, see GRANT.
Tip RisingWave only supports at-least-once semantics for the database Sink, which means that in case of failures, duplicate data may be written. You are recommended to use the database Primary Key tables, which can deduplicate data and achieve end-to-end idempotent writes.

Parameters

The following table describes the parameters you need to configure when you sink data from RisingWave to the database. All parameters are required unless otherwise specified.

Data type mapping

The following table provides the data type mapping between RisingWave and the database.

Examples

  1. Create a database demo in the database and create a Primary Key table score_board in this database.
  2. Sink data from RisingWave to the database.