Syntax
alter_option depends on the operation you want to perform on the source. For all supported clauses, see the sections below.
Clause
ADD COLUMN
- To alter columns in a source created with a schema registry, see REFRESH SCHEMA.
- You cannot add a primary key column to a source or table in RisingWave. To modify the primary key of a source or table, you need to recreate the table.
- You cannot remove a column from a source in RisingWave. If you intend to remove a column from a source, you’ll need to drop the source and create the source again.
REFRESH SCHEMA
Fetch the latest schema from the schema registry and update the source schema.
Currently when refreshing the schema registry of a source, it is not allowed to drop columns or change types.
Create a source
Refresh schema
RENAME TO
OWNER TO
SET SCHEMA
SET PARALLELISM
Added in version 2.3.
SET SOURCE_RATE_LIMIT
SOURCE_RATE_LIMIT, refer to How to view runtime parameters.
For a newly created materialized view on a source with historical data e.g. Kafka source, it will backfill from
the source. The backfilling process will not be affected by the
SOURCE_RATE_LIMIT
of the source.To modify the rate limit of the backfilling process, please refer to SET BACKFILL_RATE_LIMIT.Example
Example