Skip to main content
Use the SQL statement below to connect RisingWave to the built-in load generator.

Syntax

WITH options - columnparameter[]

The following table shows the data types that can be generated for each load generator type. Select the type of data to be generated.
The sequence load generator can generate numbers, incremented by 1, from the starting number to the ending number. For example, 1, 2, 3, … and 1.56, 2.56, 3.56, …Specify the following fields for every column.

Example

Here is an example of connecting RisingWave to the built-in load generator. The following statement creates a source s1 with five columns:
  • i1 — An array of three integers starting from 1 and incrementing by 1
  • v1 — Structs that contain random integers v2 ranging from -10 to 10 and random floating-point numbers v3 ranging from 15 to 55
  • t1 — Random timestamps from as early as 2 hours as 37 minutes prior to the generator execution time
  • z1 - Random timestamps with timezones from as early as 2 hours as 37 minutes prior to the generator execution time
  • c1 — Random strings with each consists of 16 characters
Let’s query s1 after a few seconds.