Skip to main content
Need help generating SQL? Use Claude Code or Cursor with the RisingWave MCP server to generate and run SQL interactively. You can create and manage Apache Iceberg tables directly in RisingWave. When you create an internal Iceberg table (that is, a RisingWave-managed Iceberg table), RisingWave handles its lifecycle, while the underlying data is stored in the open Apache Iceberg format in an object store you configure.

Create an internal Iceberg table

Creating and using an internal Iceberg table is a two-step process: first, you define the storage and catalog details in a CONNECTION object, and then you create the table itself.

Step 1: Create an Iceberg Connection

An Iceberg CONNECTION defines the catalog and object storage configuration. You must specify the type and warehouse.path parameters, along with the required parameters for your catalog and object storage. To use the JDBC-based built-in catalog, set hosted_catalog to true. commit_checkpoint_interval is configured on the table or sink WITH (...) properties (for example, CREATE TABLE ... ENGINE = iceberg WITH (...)), not on the CONNECTION object itself. In the default configuration, Iceberg commits happen about every 60 seconds (commit_checkpoint_interval = 60). When you create a CONNECTION, you specify the object storage backend where the table data will be stored. You also specify the catalog that will manage the table’s metadata.
For S3 credentials (applies to all catalogs):
  • If enable_config_load = false: you must provide s3.access.key and s3.secret.key (you may also set s3.iam_role_arn).
  • If enable_config_load = true: don’t provide s3.access.key/s3.secret.key (you may set s3.iam_role_arn, or rely on the role already available in your environment/config).
See Object storage configuration.
For more details on the available catalog options, see Iceberg catalog configuration.
For more details, see Built-in catalog.

Step 2: Create an internal Iceberg table

Create an internal Iceberg table using the ENGINE = iceberg clause. To create Iceberg tables, RisingWave needs to know which Iceberg CONNECTION to use (this connection contains both the object storage settings and the catalog settings). Set the connection before creating the table — either for the current session or globally for all sessions.
Then create the table:
You can also define a partition strategy in the WITH clause to optimize query performance.
Supported partitioning strategies include by column, by multiple columns, and by applying transforms like bucket(n, column) or truncate(n, column). The partition key must be a prefix of the primary key.

Work with internal tables

Once created, you can work with an internal Iceberg table using familiar SQL (insert, query, materialized views). One important difference: new writes become queryable only after an Iceberg commit. By default, Iceberg commits happen about every 60 seconds (controlled by commit_checkpoint_interval).

Ingest data

You can ingest data using standard INSERT statements or by streaming data from a source using CREATE SINK ... INTO.

Query data

Query the table directly with SELECT or use it as a source for a materialized view.

Time travel

Time travel queries work on committed Iceberg snapshots. Make sure at least one Iceberg commit has happened before using these queries.

Partition strategy

RisingWave’s Iceberg table engine supports table partitioning using the partition_by option. Partitioning helps organize data for efficient storage and query performance. You can partition by one or multiple columns, separated by commas, and optionally apply a Transform function to each column to customize partitioning. Supported transformations include identity, truncate(n), bucket(n), year, month, day, hour, and void. For more details on Iceberg partitioning, see Partition transforms.

Query storage selection

Iceberg engine tables have two storage backends for batch reads:
  • Iceberg columnar storage – better for wide scans and analytical reads.
  • Hummock row storage – better for point reads and highly selective access.
You can control which backend a batch SELECT uses with the iceberg_query_storage_mode session variable.
iceberg_query_storage_mode only affects batch SELECT on tables created with ENGINE = ICEBERG. Streaming queries are not affected.

Table maintenance

To maintain good performance and manage storage costs, internal Iceberg tables require periodic maintenance, including compaction and snapshot expiration. RisingWave provides both automatic and manual maintenance options. For complete details, see the Iceberg table maintenance guide.

External access

Because internal tables are standard Iceberg tables, they can be read by external query engines like Spark or Trino using the same catalog and storage configuration. Spark Example:

Limitations

  • Advanced schema evolution operations are not yet supported.
  • To ensure data consistency, only RisingWave should write to internal Iceberg tables.