We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2a7b409 commit fbf268eCopy full SHA for fbf268e
1 file changed
rdb/rdb-sink/src/main/java/com/dtstack/flink/sql/sink/rdb/table/RdbTableInfo.java
@@ -29,6 +29,8 @@
29
*/
30
public class RdbTableInfo extends TargetTableInfo {
31
32
+ public static final int MAX_BATCH_SIZE = 10000;
33
+
34
public static final String URL_KEY = "url";
35
36
public static final String TABLE_NAME_KEY = "tableName";
@@ -144,6 +146,10 @@ public boolean check() {
144
146
Preconditions.checkNotNull(tableName, "rdb field of tableName is required");
145
147
Preconditions.checkNotNull(userName, "rdb field of userName is required");
148
Preconditions.checkNotNull(password, "rdb field of password is required");
149
150
+ if (null != batchSize) {
151
+ Preconditions.checkArgument(batchSize <= MAX_BATCH_SIZE, "batchSize must be less than " + MAX_BATCH_SIZE);
152
+ }
153
return true;
154
}
155
0 commit comments