struct type.
Prerequisites
Before sinking data from RisingWave to StarRocks, please ensure the following:- The StarRocks 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
All parameters are required unless specified otherwise.Examples
Assume we have a materialized view,bhv_mv.
Data type mapping
Use this table to choose StarRocks column types compatible with the RisingWave types in your source table or materialized view. For details on native RisingWave data types, see Overview of data types.
When sinking
TIMESTAMP WITH TIME ZONE to StarRocks, RisingWave uses the session timezone captured when the sink is created. Set it before CREATE SINK with SET TIME ZONE, for example SET TIME ZONE 'Asia/Shanghai';. The output format is %Y-%m-%d %H:%M:%S%.6f (year-month-day, hour:minute:second with six fractional-second digits), without a timezone suffix. For example, with Asia/Shanghai, 2018-01-26T18:30:09.453Z is written as 2018-01-27 02:30:09.453000.
If a decimal value is out of bounds or represents inf, -inf, or nan, RisingWave will insert null values.