CREATE TABLE instead of CREATE SOURCE and specifying the connection settings and data format.
Syntax
For Avro and Protobuf data, do not specify
schema_definition in the CREATE SOURCE or CREATE TABLE statement. The schema should be provided in a Web location in the option schema.location in ENCODE properties section.Connector parameters
Other parameters
Read schemas from locations
RisingWave supports reading schemas from a Web location inhttp://..., https://..., or S3://... format for Pulsar data in Avro or Protobuf format.
For Protobuf, if a schema location is specified, the schema file must be a FileDescriptorSet, which can be compiled from a .proto file with a command like this:
CREATE SOURCE statement.
Example
Here is an example of connecting RisingWave to a Pulsar broker to read data from individual topics.- Avro
- JSON
- Protobuf