JSON or TEMPLATE), so a primary key must always be provided.
You can test out this process on your own device by using the redis-sink demo in the integration_test directory of the RisingWave repository.
Prerequisites
Before sinking data from RisingWave to Redis, please ensure the following:- The Redis database you want to sink to is accessible from RisingWave.
- Ensure you have an upstream materialized view or source in RisingWave that you can sink data from.
syntax
Parameters
FORMAT and ENCODE options
These options should be set in
FORMAT data_format ENCODE data_encode (key = 'value'), instead of the WITH clauseExample
Assume we create a materialized view,bhv_mv, from a source.
bhv_mv to Redis by creating a sink. Here, data_encode is JSON.
bhv_mv to Redis by creating a sink. Here, data_encode is TEMPLATE, so key_format and value_format must be defined.