CREATE SOURCE
A source is a resource that RisingWave can read data from. You can create a source in RisingWave using the CREATE SOURCE
command.
If you choose to persist the data from the source in RisingWave, use the CREATE TABLE
command with connector settings. See CREATE TABLE for more details.
Regardless of whether the data is persisted in RisingWave, you can create materialized views to perform analysis or sinks for data transformations.
Syntax
CREATE SOURCE [ IF NOT EXISTS ] source_name
[schema_definition]
WITH (
connector='connector_name',
connector_parameter='value', ...
)
ROW FORMAT data_format
[ MESSAGE 'message' ]
[ ROW SCHEMA LOCATION [ 'location' | CONFLUENT SCHEMA REGISTRY 'schema_registry_url' ] ];
note
Names and unquoted identifiers are case-insensitive. Therefore, you must double-quote any of these fields for them to be case-sensitive.
Supported sources and formats
For supported sources and formats, see Data ingestion overview.