File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed
rdb/rdb-sink/src/main/java/com/dtstack/flink/sql/sink/rdb/table Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change 2929 */
3030public class RdbTableInfo extends TargetTableInfo {
3131
32+ public static final int MAX_BATCH_SIZE = 10000 ;
33+
3234 public static final String URL_KEY = "url" ;
3335
3436 public static final String TABLE_NAME_KEY = "tableName" ;
@@ -144,6 +146,10 @@ public boolean check() {
144146 Preconditions .checkNotNull (tableName , "rdb field of tableName is required" );
145147 Preconditions .checkNotNull (userName , "rdb field of userName is required" );
146148 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+ }
147153 return true ;
148154 }
149155
You can’t perform that action at this time.
0 commit comments