Skip to main content
Need help generating SQL? Use Claude Code or Cursor with the RisingWave MCP server to generate and run SQL interactively. This guide explains how to deliver processed data from RisingWave into existing Iceberg tables. Use this when you have Iceberg tables managed by external systems and want RisingWave to deliver processed results into them.

Prerequisites

  • An upstream source, table, or materialized view in RisingWave to output data from.
  • Existing Iceberg tables that you can deliver to, or the ability to create them via external systems.
  • Appropriate permissions to deliver to the target Iceberg catalog and storage.
  • Access credentials for the underlying object storage (e.g., S3 access key and secret key).

Create an Iceberg sink

To write data to an external Iceberg table, create a SINK. This statement defines how data from an upstream object should be formatted and delivered to the target Iceberg table.

Configuration parameters

For detailed storage and catalog configuration: You can configure commit_checkpoint_interval and commit_retry_num to manage commit frequency and retry behavior.

Schema evolution

RisingWave supports automatic schema evolution for Iceberg sinks, allowing schema changes from upstream sources to be automatically propagated to the target Iceberg table. This feature works with exactly-once semantics. To enable schema evolution, set auto.schema.change = 'true' when creating the sink:

Supported operations

Currently, RisingWave supports the following schema change operations:
  • ADD COLUMN: Automatically adds new columns to the Iceberg table when they are added to the upstream source.

How it works

When schema evolution is enabled:
  1. RisingWave detects schema changes in the upstream source
  2. Schema changes are applied to the Iceberg table as atomic schema updates in the catalog
  3. The sink coordinates schema commits with data commits to ensure consistency
  4. In exactly-once mode, RisingWave ensures that schema changes are applied exactly once, even in the presence of failures
Schema changes use separate commit operations from data writes, but the sink coordinates them so that the required schema updates are durably committed and not duplicated during recovery. The system checks whether schema changes have already been applied to avoid duplicate schema updates during recovery.

Table maintenance

When you continuously sink data to an Iceberg table, it is important to perform periodic maintenance, including compaction and snapshot expiration, to maintain good query performance and manage storage costs. RisingWave provides both automatic and manual maintenance options. For complete details, see the Iceberg table maintenance guide.

Monitoring