Skip to content

Commit

Permalink
[FLINK-17895][table] Default value of rows-per-second in datagen can …
Browse files Browse the repository at this point in the history
…be limited


This closes apache#12415
  • Loading branch information
pyscala committed Jun 3, 2020
1 parent d35c33a commit c52e579
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,11 @@
public class DataGenTableSourceFactory implements DynamicTableSourceFactory {

public static final String IDENTIFIER = "datagen";
public static final Long ROWS_PER_SECOND_DEFAULT_VALUE = 10000L;

public static final ConfigOption<Long> ROWS_PER_SECOND = key("rows-per-second")
.longType()
.defaultValue(Long.MAX_VALUE)
.defaultValue(ROWS_PER_SECOND_DEFAULT_VALUE)
.withDescription("Rows per second to control the emit rate.");

public static final String FIELDS = "fields";
Expand Down

0 comments on commit c52e579

Please sign in to comment.