Prerequisites
Before you begin, ensure you have the following:- An existing Iceberg table.
- A configured object store (e.g., AWS S3).
- A configured external Iceberg catalog (e.g., AWS Glue).
- The necessary access credentials for your storage and catalog.
- A running RisingWave cluster. For details about installing and starting RisingWave, see RisingWave quickstart.
Read from an existing Iceberg table
To read data from an existing Iceberg table, you use theCREATE SOURCE
command. Run the following commands in psql
or a client that is connected to RisingWave. This command creates a connection to your table, allowing you to ingest its data for stream processing in RisingWave.
Example with AWS Glue Catalog:
Write to an existing Iceberg table
To write data from RisingWave to an existing Iceberg table, you use theCREATE SINK
command. This is useful for exporting the results of a materialized view or streaming pipeline into your data lake.
Example with a REST Catalog:
upsert
operations, which means it will insert new rows and update existing ones based on the primary_key
.
Next steps
- Detailed configurations: For detailed information on all the available parameters for different catalog and storage types, see the following guides:
- Full guides: For a more comprehensive look at reading from and writing to Iceberg tables, see these guides: